Обсуждение: Difference between Postgres now() and date

Поиск
Список
Период
Сортировка

Difference between Postgres now() and date

От
Doug Silver
Дата:
Just something I saw and wondered about it even though I don't care too
much.  I ran a cgi (perl) script comparing the now() with the system
/bin/date and they're off by 38 seconds.  This is on a FreeBSD 4.4 machine
and I'm running clockspeed.  Now clockspeed *does* have an issue where you
have to fix the localtime to account for leap seconds, or something like
that, so I know that's the issue.  But, I'm curious as to how PostgreSQL
is determining the localtime on the machine since there's a difference
between the two.

I restarted postmaster just to make sure that wasn't the issue.

Thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Silver
Network Manager
Quantified Systems, Inc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~