Changing constant in src/include/miscadmin.h

From: Yury Bokhoncovich <byg(at)center-f1(dot)ru>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Changing constant in src/include/miscadmin.h
Date: 2002-03-20 13:17:40
Message-ID: Pine.LNX.4.33.0203201902450.12114-100000@panda.center-f1.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello!

Is it valid to change a constant in src/include/miscadmin.h?

===========================
@@ -150,10 +150,10 @@

#define MAXTZLEN 10 /* max TZ name len, not counting tr. null */

-#define USE_POSTGRES_DATES 0
#define USE_ISO_DATES 1
#define USE_SQL_DATES 2
#define USE_GERMAN_DATES 3
+#define USE_POSTGRES_DATES 4

extern int DateStyle;
extern bool EuroDates;
===========================

This can make easy parsing of date style in parse_datestyle_internal
function (src/backend/commands/variable.c) in this way:

datestyle=0;
if () datestyle=USE_xxx
...
if (!datestyle) elog(ERROR

--
WBR, Yury Bokhoncovich, Senior System Administrator, NOC of F1 Group.
Phone: +7 (3832) 106228, ext.140, E-mail: byg(at)center-f1(dot)ru(dot)
Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Sherry 2002-03-20 14:05:14 Re: XML
Previous Message Luis Alberto Amigo Navarro 2002-03-20 11:53:01 Re: Fw: Fw: bad performance on irix