Re: [sqlsmith] Crash in mcv_get_match_bitmap

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [sqlsmith] Crash in mcv_get_match_bitmap
Дата
Msg-id 15097.1562792274@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [sqlsmith] Crash in mcv_get_match_bitmap  (Andreas Seltenreich <seltenreich@gmx.de>)
Ответы Re: [sqlsmith] Crash in mcv_get_match_bitmap  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-hackers
Andreas Seltenreich <seltenreich@gmx.de> writes:
> running sqlsmith on the regression database of REL_12_STABLE at
> ff597b656f yielded a crash in mcv_get_match_bitmap.  I can reproduce it
> with the following query on the regression database:
>     select filler1 from mcv_lists where a is not null and (select 42) <= c;

Seems to be the same problem I just complained of in the other
thread: mcv_get_match_bitmap has an untenable assumption that
"is a pseudoconstant" means "is a Const".

I notice it's also assuming that the Const must be non-null.
It's not really easy to crash it that way, because if you just
write "null <= c" that'll get reduced to constant-NULL earlier.
But I bet there's a way.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: buildfarm's typedefs list has gone completely nutso
Следующее
От: Sehrope Sarkuni
Дата:
Сообщение: Refactoring syslogger piping to simplify adding new log destinations