Re: BUG #16500: SQL Abend. select multi_key_columns_range_partition_table
Вложения
В списке pgsql-bugs по дате отправления:
| От | Dmitry Dolgov |
|---|---|
| Тема | Re: BUG #16500: SQL Abend. select multi_key_columns_range_partition_table |
| Дата | |
| Msg-id | 20200701125554.hy7gtgju5b2dmyna@localhost обсуждение исходный текст |
| Ответ на | Re: BUG #16500: SQL Abend. selectmulti_key_columns_range_partition_table (Dmitry Dolgov <9erthalion6@gmail.com>) |
| Ответы |
Re: BUG #16500: SQL Abend. select multi_key_columns_range_partition_table
|
| Список | pgsql-bugs |
> On Thu, Jun 18, 2020 at 06:44:24PM +0200, Dmitry Dolgov wrote: > > Yep, I also can reproduce it easily. Can't say I'm familiar with this > code, but after looking through it a bit it seems something strange is > going on with a pruning step generated using prefix. Looks like it has > only expressions for the second attribute of the partition key, but > tries to compare with the full boundinfo. Without this pruning step the > query above doesn't crash for me. After some more investigation it seems that the issue is an empty prefix in the code mentioned in my previous email. When it's constructed BTGreaterStrategyNumber is excluded, which makes the logic somehow dependend on the order or clauses (e.g. the original reported case would be fine for a table with those two colums in other order), it looks strange for me. Not sure if the attached fix is correct, but it allows to avoid empty prefix, avoiding the crash, and passes the tests.
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера