Re: BUG #17570: Unrecognized node type for query with statistics on expressions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17570: Unrecognized node type for query with statistics on expressions
Дата
Msg-id 3943162.1659712107@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17570: Unrecognized node type for query with statistics on expressions  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-bugs
Richard Guo <guofenglinux@gmail.com> writes:
> I realized the fix in v2 is not correct. The attnums generated by
> statext_is_compatible_clause is expected to be NOT offsetting by its
> caller, i.e. statext_mcv_clauselist_selectivity. Revise that in v3 patch
> by doing the offsetting when composing clause_attnums that need to have
> permission check.

Yeah, I was afraid that that route would require the patch to metastasize
into more places.  Agreed on keeping the argument definition the same
and coping locally instead.  But I don't think that you've done enough
to address the root cause of this bug, which is the woeful
under-documentation of the argument.  I'll have a go at that part.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17575: row(NULL) IS NULL inconsistent with IS NOT DISTINCT FROM NULL
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [External] Re: [PATCH] BUG FIX: inconsistent page found in BRIN_REGULAR_PAGE