Re: "long" type is not appropriate for counting tuples

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: "long" type is not appropriate for counting tuples
Дата
Msg-id ba8ddfb5-384d-a21b-1358-0cf5e604f325@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: "long" type is not appropriate for counting tuples  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: "long" type is not appropriate for counting tuples  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2019-05-22 17:52, Tom Lane wrote:
> I don't really see how controlling snprintf is enough to get somewhere
> on this.  Sure we could invent some new always-64-bit length modifier
> and teach snprintf.c about it, but none of the other tools we use
> would know about it.  I don't want to give up compiler cross-checking
> of printf formats, do you?

Could we define int64 to be long long int on all platforms and just
always use %lld?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: "long" type is not appropriate for counting tuples
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: Is it safe to ignore the return value of SPI_finish and SPI_execute?