Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZYvik-0004R5-Hn for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Sep 2015 12:40:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZYvik-0005oC-2A for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Sep 2015 12:40:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZYvij-0005o5-Fq for pgsql-hackers@postgresql.org; Mon, 07 Sep 2015 12:40:25 +0000 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZYvig-0002ZJ-7e for pgsql-hackers@postgresql.org; Mon, 07 Sep 2015 12:40:24 +0000 Received: by wicge5 with SMTP id ge5so82694709wic.0 for ; Mon, 07 Sep 2015 05:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=hZ2NJMKkY9L0eEqFQsxRK9r58ABapD7qhD/ae80hpUk=; b=DBpQZaEuk9bXPv3s8fgz8RKDfL6guVXSSi506Ca2NVF1MOBHIEI/EFNL+wwCqr7dIK 7hgBeHlBVJVV8A7KD/ltZokUn9OXBwW9FKedspZYIOnGJOfQMd4LWiYgbssPOW7cHM/i vky89+F+gcaZNoN2KGzmah99Pv3I7wh4PBpWbR8AxKvbEuwJyxfXV+UH2m0ljR8G3Oj1 acbCzG96xbtcTFZpbXtprNHbI+IlaEcLs9fq6BKYtxHXpTnqmAXn4fmW8SHJ50gQTw9x rbH9Jz/CSBajxLyY2iHJrpXctlWOA7slLBHmE2v8BaZeG6dXhRsT8uTQr219OfTJmxfM LW8g== X-Received: by 10.180.12.145 with SMTP id y17mr18755671wib.83.1441629621058; Mon, 07 Sep 2015 05:40:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.27.219.3 with HTTP; Mon, 7 Sep 2015 05:39:41 -0700 (PDT) In-Reply-To: References: <28642.1441508551@sss.pgh.pa.us> From: Greg Stark Date: Mon, 7 Sep 2015 13:39:41 +0100 X-Google-Sender-Auth: CtE3soJKYw5hRrRmsuVsEIM56zk Message-ID: Subject: Re: [COMMITTERS] pgsql: Move DTK_ISODOW DTK_DOW and DTK_DOY to be type UNITS rather than To: Tom Lane Cc: PostgreSQL-development Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Sun, Sep 6, 2015 at 4:14 AM, Greg Stark 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 100644 *** 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