[COMMITTERS] pgsql: Rely on sizeof(typename) rather than sizeof(variable) inpqforma

Поиск
Список
Период
Сортировка
От Tom Lane
Тема [COMMITTERS] pgsql: Rely on sizeof(typename) rather than sizeof(variable) inpqforma
Дата
Msg-id E1e32A5-0006Cq-DX@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Rely on sizeof(typename) rather than sizeof(variable) in pqformat.h.

In each of the pq_writeintN functions, the three uses of sizeof() should
surely all be consistent.  I started out to make them all sizeof(ni),
but on reflection let's make them sizeof(typename) instead.  That's more
like our usual style elsewhere, and it's just barely possible that the
failures buildfarm member hornet has shown since 4c119fbcd went in are
caused by the compiler getting confused about sizeof() a parameter that
it's optimizing away.

In passing, improve a couple of comments.

Discussion: https://postgr.es/m/E1e2RML-0002do-Lc@gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5229db6c6f92515afcd698cf5d5badc12ffe6bc2

Modified Files
--------------
src/include/libpq/pqformat.h | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)


--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Improve performance of SendRowDescriptionMessage.
Следующее
От: Tom Lane
Дата:
Сообщение: [COMMITTERS] pgsql: Improve implementation of CRE-stack-flattening inmap_variable_a