Re: Should we represent temp files as unsigned long int instead of signed long int type?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Should we represent temp files as unsigned long int instead of signed long int type?
Дата
Msg-id 1061734.1698281389@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Should we represent temp files as unsigned long int instead of signed long int type?  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> In the mood of removing long because it may be 4 bytes or 8 bytes
> depending on the environment, I'd suggest to change it to either int64
> or uint64.  Not that it matters much for this specific case, but that
> makes the code more portable.

Then you're going to need a not-so-portable conversion spec in the
snprintf call.  Not sure it's any improvement.

            regards, tom lane



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Should we represent temp files as unsigned long int instead of signed long int type?
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: libpq async connection and multiple hosts