Re: does timestamp precision affect storage size?

Поиск
Список
Период
Сортировка
От Jonathan Vanasco
Тема Re: does timestamp precision affect storage size?
Дата
Msg-id 13921B0C-9383-4D11-9F33-087F81F4C5CA@2xlp.com
обсуждение исходный текст
Ответ на Re: does timestamp precision affect storage size?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Jun 21, 2016, at 4:50 PM, Tom Lane wrote:

> Storage-wise, no.  If you have a resolution spec on your columns now,
> I think dropping the resolution spec would save you a few nanoseconds per
> row insertion due to not having to apply the roundoff function.  Adding
> one would certainly not improve speed.


On Jun 21, 2016, at 4:47 PM, Vik Fearing wrote:
> No, there are no space savings here.
>
> =# select pg_column_size('now'::timestamptz(0)),
> pg_column_size('now'::timestamptz);


Thanks.  I thought that was happening, but wanted to make sure.  the allure of shaving a byte or two off some rows
couldn'tbe ignored ;) 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: does timestamp precision affect storage size?
Следующее
От: Jonathan Vanasco
Дата:
Сообщение: optimizing a query