Re: BUG #17158: Distinct ROW fails with Postgres 14

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17158: Distinct ROW fails with Postgres 14
Дата
Msg-id 594111.1631631733@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17158: Distinct ROW fails with Postgres 14  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: BUG #17158: Distinct ROW fails with Postgres 14  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-bugs
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 10.09.21 21:27, Tom Lane wrote:
>> Perhaps it'd work to put the phony entry into fcinfo->flinfo->fn_mcxt
>> instead of CacheMemoryContext.

> Ok, the attached patch fixes the valgrind error.

Looks roughly sane to me.  I'm of two minds about whether you
ought to change the palloc to palloc0.  We'd have taken much
longer to notice this problem if palloc0 had been used; but
from any standpoint other than "will valgrind catch it", it
seems like zeroing the fake typcache entry would be safer.

            regards, tom lane



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: BUG #17158: Distinct ROW fails with Postgres 14
Следующее
От: Yudianto Prasetyo
Дата:
Сообщение: bugs or my fault