Skip site navigation (1) Skip section navigation (2)

pgsql: Improve EncodeDateTime and EncodeTimeOnly APIs

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve EncodeDateTime and EncodeTimeOnly APIs
Date: 2012-03-14 21:05:28
Message-ID: E1S7vNw-00086e-UX@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Improve EncodeDateTime and EncodeTimeOnly APIs

Use an explicit argument to tell whether to include the time zone in
the output, rather than using some undocumented pointer magic.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ad4fb0d0d2f33ec0165f2a9a50a6d8cbcef4ab82

Modified Files
--------------
src/backend/utils/adt/date.c               |    4 +-
src/backend/utils/adt/datetime.c           |   65 ++++++++++++++++------------
src/backend/utils/adt/nabstime.c           |    2 +-
src/backend/utils/adt/timestamp.c          |    7 +--
src/backend/utils/adt/xml.c                |    5 +-
src/include/utils/datetime.h               |    4 +-
src/interfaces/ecpg/pgtypeslib/dt.h        |    6 +-
src/interfaces/ecpg/pgtypeslib/dt_common.c |   59 ++++++++++++++-----------
src/interfaces/ecpg/pgtypeslib/timestamp.c |    3 +-
9 files changed, 84 insertions(+), 71 deletions(-)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2012-03-14 23:22:14
Subject: pgsql: Uppercase pg_upgrade status output title.
Previous:From: Peter EisentrautDate: 2012-03-14 20:51:40
Subject: pgsql: Add additional safety check against invalid backup label file

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group