pgsql-server: I think I've finally identified the cause of the

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql-server: I think I've finally identified the cause of the
Дата
Msg-id 20040531183151.DCE46D1B18C@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
I think I've finally identified the cause of the off-by-one-second
issue in timestamp conversion that we hacked around for so long by
ignoring the seconds field from localtime().  It's simple: you have
to watch out for platform-specific roundoff error when reducing a
possibly-fractional timestamp to integral time_t form.  In particular
we should subtract off the already-determined fractional fsec field.
This should be enough to get an exact answer with int64 timestamps;
with float timestamps, throw in a rint() call just to be sure.

Modified Files:
--------------
    pgsql-server/src/backend/utils/adt:
        timestamp.c (r1.106 -> r1.107)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/utils/adt/timestamp.c.diff?r1=1.106&r2=1.107)

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

Предыдущее
От: momjian@svr1.postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql-server: Have pg_ctl print pid and error on signal failure, per
Следующее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql-server: I think I've finally identified the cause of the