From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: De-support floating-point timestamps.
Date: Thu, 23 Feb 2017 16:40:28 +0000
Message-ID: <E1cgwRQ-0004BB-OZ@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
De-support floating-point timestamps.
Per discussion, the time has come to do this. The handwriting has been
on the wall at least since 9.0 that this would happen someday, whenever
it got to be too much of a burden to support the float-timestamp option.
The triggering factor now is the discovery that there are multiple bugs
in the code that attempts to implement use of integer timestamps in the
replication protocol even when the server is built for float timestamps.
The internal float timestamps leak into the protocol fields in places.
While we could fix the identified bugs, there's a very high risk of
introducing more. Trying to build a wall that would positively prevent
mixing integer and float timestamps is more complexity than we want to
undertake to maintain a long-deprecated option. The fact that these
bugs weren't found through testing also indicates a lack of interest
in float timestamps.
This commit disables configure's --disable-integer-datetimes switch
(it'll still accept --enable-integer-datetimes, though), removes direct
references to USE_INTEGER_DATETIMES, and removes discussion of float
timestamps from the user documentation. A considerable amount of code is
rendered dead by this, but removing that will occur as separate mop-up.
Discussion: https://postgr.es/m/26788.1487455319@sss.pgh.pa.us
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b6aa17e0ae367afdcea07118e016111af4fa6bc3
Modified Files
--------------
configure | 18 +++----
configure.in | 12 ++---
doc/src/sgml/config.sgml | 8 ++--
doc/src/sgml/datatype.sgml | 55 +++++-----------------
doc/src/sgml/installation.sgml | 22 ---------
src/include/c.h | 7 +--
src/include/pg_config.h.in | 4 --
src/include/pg_config.h.win32 | 4 --
src/interfaces/ecpg/include/ecpg_config.h.in | 4 --
src/interfaces/ecpg/include/pgtypes_interval.h | 2 -
.../ecpg/test/expected/pgtypeslib-dt_test2.c | 6 +--
.../ecpg/test/expected/pgtypeslib-dt_test2.stdout | 2 +
src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc | 6 +--
src/tools/msvc/Solution.pm | 9 ----
src/tools/msvc/config_default.pl | 1 -
15 files changed, 36 insertions(+), 124 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: De-support floating-point timestamps.
In-Reply-To: <E1cgwRQ-0004BB-OZ@gemulon.postgresql.org>
References: <E1cgwRQ-0004BB-OZ@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox