Re: pg_verify_checksums and -fno-strict-aliasing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_verify_checksums and -fno-strict-aliasing
Дата
Msg-id 12600.1535830330@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_verify_checksums and -fno-strict-aliasing  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: pg_verify_checksums and -fno-strict-aliasing  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> On Fri, Aug 31, 2018 at 07:59:58PM -0400, Tom Lane wrote:
>> The others you mention could be changed, probably, but I didn't
>> bother as they didn't seem performance-critical.

> It is not really critical indeed.  There is an argument to change them
> so as other folks get used to it though.

Fair enough.  I renamed the types as suggested, changed a few more
places for consistency's sake, and pushed.

There still remain some places where palloc(BLCKSZ) or equivalent is used,
but there's no matching pfree.  In a lot of them the buffer is returned
to the caller so there's no choice.  It's likely that some are just
leaking the storage transiently and we could convert them to using a
PGAlignedBlock local variable, but I didn't bother trying to do the
analysis.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Fix docs to JOHAB encoding on server side
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: Some pgq table rewrite incompatibility with logical decoding?