Add %z support to elog/ereport?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Add %z support to elog/ereport?
Дата
Msg-id 20131111155029.GC2401@awork2.anarazel.de
обсуждение исходный текст
Ответы Re: Add %z support to elog/ereport?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Add %z support to elog/ereport?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hi,

I'd like to add support for the length modifier %z. Linux' manpages
describes it as:z      A  following  integer conversion corresponds to a size_t or ssize_t argument.

Since gcc's printf format checks understand it, we can add support for
it similar to the way we added %m support.

Currently we just deal with wanting to print size_t/Size values by
casting them to uint32, uint64 or similar, but that's a) annoying
because 64bit numbers require the annoying UINT64_FORMAT b) more and
more likely to be problematic when casting to 32bit numbers.

Does anybody see prolbems with that?

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: TABLE not synonymous with SELECT * FROM?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Execute query with EXCEPT, INTERSECT as anti-join, join?