From: Greg Stark <stark@mit.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Move DTK_ISODOW DTK_DOW and DTK_DOY to be type UNITS rather than
Date: Mon, 7 Sep 2015 13:39:41 +0100
Message-ID: <CAM-w4HMdWM9TcnOo95APwROdEKcSE_OrJrVWiszt+MRvF-aPmA@mail.gmail.com> (raw)
In-Reply-To: <CAM-w4HM2R-210MUK9wURt5EWT2kfrpqThuCVspfYu1ueyQ6fJA@mail.gmail.com>
References: <E1ZYPoc-0005rk-14@gemulon.postgresql.org>
<28642.1441508551@sss.pgh.pa.us>
<CAM-w4HM2R-210MUK9wURt5EWT2kfrpqThuCVspfYu1ueyQ6fJA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On Sun, Sep 6, 2015 at 4:14 AM, Greg Stark <stark@mit.edu> wrote:
>> Also, what about ecpg's copy of the code?
>
> That I hadn't thought of. Will look at it but it's after 4am here now
> so I'll get to it tomorrow.
So the only mention of these constants I can find in ECPG is the
structures in dt_common.c. I don't see a any code using it and I'm not
clear what the purpose of having this structure is or the significance
of changing it. Is this sufficient? Is it even necessary?
diff --git a/src/interfaces/ecpg/pgtypeslib/dt_common.c
b/src/interfaces/ecpg/pgtypeslib/dt_common.c
index 7fe2982..01cdfa9 100644inline patch 1: src/interfaces/ecpg/pgtypeslib/dt_common.c (+4/-0 lines) download inline-1.patch*** a/src/interfaces/ecpg/pgtypeslib/dt_common.c
--- b/src/interfaces/ecpg/pgtypeslib/dt_common.c
***************
*** 123,130 **** static datetkn datetktbl[] = {
{"dec", MONTH, 12},
{"december", MONTH, 12},
{"dnt", TZ, 3600}, /* Dansk Normal Tid */
! {"dow", RESERV, DTK_DOW}, /* day of week */
! {"doy", RESERV, DTK_DOY}, /* day of year */
{"dst", DTZMOD, SECS_PER_HOUR},
#if 0
{"dusst", DTZ, 21600}, /* Dushanbe Summer Time */
--- 123,130 ----
{"dec", MONTH, 12},
{"december", MONTH, 12},
{"dnt", TZ, 3600}, /* Dansk Normal Tid */
! {"dow", UNITS, DTK_DOW}, /* day of week */
! {"doy", UNITS, DTK_DOY}, /* day of year */
{"dst", DTZMOD, SECS_PER_HOUR},
#if 0
{"dusst", DTZ, 21600}, /* Dushanbe Summer Time */
***************
*** 206,212 **** static datetkn datetktbl[] = {
{"irkst", DTZ, 32400}, /* Irkutsk Summer Time */
{"irkt", TZ, 28800}, /* Irkutsk Time */
{"irt", TZ, 12600}, /* Iran Time */
! {"isodow", RESERV, DTK_ISODOW}, /* ISO day of week, Sunday == 7 */
#if 0
isst
#endif
--- 206,212 ----
{"irkst", DTZ, 32400}, /* Irkutsk Summer Time */
{"irkt", TZ, 28800}, /* Irkutsk Time */
{"irt", TZ, 12600}, /* Iran Time */
! {"isodow", UNITS, DTK_ISODOW}, /* ISO day of week, Sunday == 7 */
#if 0
isst
#endif
--
greg
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: stark@mit.edu, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Move DTK_ISODOW DTK_DOW and DTK_DOY to be type UNITS rather than
In-Reply-To: <CAM-w4HMdWM9TcnOo95APwROdEKcSE_OrJrVWiszt+MRvF-aPmA@mail.gmail.com>
References: <E1ZYPoc-0005rk-14@gemulon.postgresql.org> <28642.1441508551@sss.pgh.pa.us> <CAM-w4HM2R-210MUK9wURt5EWT2kfrpqThuCVspfYu1ueyQ6fJA@mail.gmail.com> <CAM-w4HMdWM9TcnOo95APwROdEKcSE_OrJrVWiszt+MRvF-aPmA@mail.gmail.com>
* 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