Re: Range types

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Range types
Дата
Msg-id 1260898449.15987.1179.camel@jdavis
обсуждение исходный текст
Ответ на Re: Range types  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Range types  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Range types  (Scott Bailey <artacus@comcast.net>)
Re: Range types  (decibel <decibel@decibel.org>)
Список pgsql-hackers
On Tue, 2009-12-15 at 10:19 -0500, Tom Lane wrote:
> I'm not sure that anyone has argued that.  I did suggest that there
> might be a small list of types for which we should provide discrete
> behavior (ie, with next/previous functions) and the rest could have
> continuous behavior (without that assumption).  But I quite agree
> that we want both types of ranges.

It seems like we're moving toward treating TIMESTAMP as continuous.

If I'm correct, continuous ranges always need two extra bits of storage
for the exclusivity. But for timestamps, that means 16 bytes (2 x 8-byte
timestamp) turns into 17 bytes, which is really more like 20 or 24 bytes
with alignment.

Considering that these are likely to be used for audit or history
tables, 8 bytes of waste (50%) seems excessive -- especially when
treating them as discrete seems to work pretty well, at least for the
int64 timestamps.

Ideas?

Regards,Jeff Davis



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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Closing out CommitFest 2009-11
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: New VACUUM FULL