Re: Extending outfuncs support to utility statements

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Extending outfuncs support to utility statements
Дата
Msg-id 729666.1679250130@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Extending outfuncs support to utility statements  (Alexander Lakhin <exclusion@gmail.com>)
Список pgsql-hackers
Alexander Lakhin <exclusion@gmail.com> writes:
> Please look at the function _readA_Const() (introduced in a6bc33019), which fails on current master under valgrind:
> ...
> Here _readA_Const() performs:
>                  union ValUnion *tmp = nodeRead(NULL, 0);

>                  memcpy(&local_node->val, tmp, sizeof(*tmp));

> where sizeof(union ValUnion) = 16, but nodeRead()->makeInteger() produced Integer (sizeof(Integer) = 8).

Right, so we can't get away without a switch-on-value-type like the
other functions for A_Const have.  Will fix.

            regards, tom lane



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

Предыдущее
От: Melanie Plageman
Дата:
Сообщение: Re: Should vacuum process config file reload more often
Следующее
От: Juan José Santamaría Flecha
Дата:
Сообщение: Re: Fix fseek() detection of unseekable files on WIN32