Re: timestamps, formatting, and internals

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: timestamps, formatting, and internals
Дата
Msg-id jqcdgk$puj$2@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на timestamps, formatting, and internals  (David Salisbury <salisbury@globe.gov>)
Ответы Re: timestamps, formatting, and internals  (Mark Morgan Lloyd <markMLl.pgsql-general@telemetry.co.uk>)
Список pgsql-general
On 2012-05-29, David Salisbury <salisbury@globe.gov> wrote:
>
>
> On 5/27/12 12:25 AM, Jasen Betts wrote:
>> The query: "show integer_datetimes;" should return 'on' which means
>> timestamps are microsecond precision if it returns 'off' your database
>> was built with floating point timstamps and equality tests will be
>> unreliable,
>
> I find that rather interesting.  I was told that I was losing microseconds
> when I extracted an epoch from the difference between two timestamps and casted
> that value to an integer.  So if I have integer timestamps ( your case above )
> I get microseconds, but integer epochs is without microseconds?

yeah, the microseconds appear as fractions of seconds, so in the
conversion to integer epoch they get rounded off.


>
> Thanks,
>
> -ds
>


--
⚂⚃ 100% natural

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: autovacuum running for a long time on a new table with 1 row
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Disable Streaming Replication without restarting either master or slave