postgresql/src/backend/utils/adt
Tom Lane 87de80e95a 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.
2004-05-31 18:31:51 +00:00
..
acl.c Solve the 'Turkish problem' with undesirable locale behavior for case 2004-05-07 00:24:59 +00:00
array_userfuncs.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
arrayfuncs.c More janitorial work: remove the explicit casting of NULL literals to a 2004-01-07 18:56:30 +00:00
arrayutils.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
ascii.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
bool.c The added aggregates are: 2004-05-26 15:26:28 +00:00
cash.c Solve the 'Turkish problem' with undesirable locale behavior for case 2004-05-07 00:24:59 +00:00
char.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
date.c Integrate src/timezone library for all platforms. There is more we can 2004-05-21 05:08:06 +00:00
datetime.c Integrate src/timezone library for all platforms. There is more we can 2004-05-21 05:08:06 +00:00
datum.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
encode.c Solve the 'Turkish problem' with undesirable locale behavior for case 2004-05-07 00:24:59 +00:00
float.c Change ln(), log(), power(), and sqrt() to emit the correct SQLSTATE 2004-05-16 23:18:55 +00:00
format_type.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
formatting.c Integrate src/timezone library for all platforms. There is more we can 2004-05-21 05:08:06 +00:00
geo_ops.c *) inet_(client|server)_(addr|port)() and necessary documentation for 2004-05-26 18:35:51 +00:00
geo_selfuncs.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
inet_net_ntop.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
inet_net_pton.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
int8.c Add missing casts to unsigned char in recently-added isspace() calls. 2004-04-01 22:51:31 +00:00
int.c Add function (actually an int4 and an int8 version) that generates 2004-02-03 08:29:57 +00:00
like_match.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
like.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
lockfuncs.c Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
mac.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
Makefile Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
misc.c Integrate src/timezone library for all platforms. There is more we can 2004-05-21 05:08:06 +00:00
nabstime.c Put back #include <sys/time.h> in files that seem to need it on Linux. 2004-05-21 16:08:47 +00:00
name.c Use the new List API function names throughout the backend, and disable the 2004-05-30 23:40:41 +00:00
network.c *) inet_(client|server)_(addr|port)() and necessary documentation for 2004-05-26 18:35:51 +00:00
not_in.c Use the new List API function names throughout the backend, and disable the 2004-05-30 23:40:41 +00:00
numeric.c Minor correction for previous SQLSTATE patch: I changed dsqrt() to emit the 2004-05-19 04:32:26 +00:00
numutils.c Add missing casts to unsigned char in recently-added isspace() calls. 2004-04-01 22:51:31 +00:00
oid.c Revise int2/int4/int8/float4/float8 input routines to allow for 2004-03-11 02:11:14 +00:00
oracle_compat.c Add <limits.h>, per Magnus. 2004-05-26 16:16:03 +00:00
pg_locale.c On WIN32, don't choke when setlocale(LC_MESSAGES, "") returns NULL. 2004-05-27 19:19:05 +00:00
pg_lzcompress.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
pgstatfuncs.c Added hints about the reason, why the command string in 2004-02-12 01:44:22 +00:00
pseudotypes.c Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
quote.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
regexp.c Solve the 'Turkish problem' with undesirable locale behavior for case 2004-05-07 00:24:59 +00:00
regproc.c Use the new List API function names throughout the backend, and disable the 2004-05-30 23:40:41 +00:00
ri_triggers.c Use the new List API function names throughout the backend, and disable the 2004-05-30 23:40:41 +00:00
rowtypes.c Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
ruleutils.c Use the new List API function names throughout the backend, and disable the 2004-05-30 23:40:41 +00:00
selfuncs.c Use the new List API function names throughout the backend, and disable the 2004-05-30 23:40:41 +00:00
tid.c Use the new List API function names throughout the backend, and disable the 2004-05-30 23:40:41 +00:00
timestamp.c I think I've finally identified the cause of the off-by-one-second 2004-05-31 18:31:51 +00:00
varbit.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
varchar.c Make length() disregard trailing spaces in char(n) values, per discussion 2004-02-01 06:27:48 +00:00
varlena.c Use the new List API function names throughout the backend, and disable the 2004-05-30 23:40:41 +00:00
version.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
xid.c $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00