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

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: "long" type is not appropriate for counting tuples
Дата
Msg-id CA+TgmoZHfGucEUjPgFrzOEYg=O62F4T7Jc4qC0Lg5BpdVBhC6A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: "long" type is not appropriate for counting tuples  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: "long" type is not appropriate for counting tuples
Список pgsql-hackers
On Thu, May 23, 2019 at 5:31 AM Peter Eisentraut
<peter.eisentraut@2ndquadrant.com> wrote:
> Another option is that in cases where it doesn't affect storage layouts,
> like the counting tuples case that started this thread, code could just
> use long long int directly instead of int64.  Then if someone wants to
> make it 128 bits or 96 bits or whatever it would not be a problem.

I think that sort of thing tends not to work out well, because at some
point it's likely to be sent out via the wire protocol; at that point
we'll need a value of a certain width.  Better to use that width right
from the beginning.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Minimal logical decoding on standbys
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench - add \aset to store results of a combined query