DateStyle config variable
DateStyle config variable
От:
Guillaume Lelarge <guillaume@lelarge.info>
Дата:
Hi all, I wondered if there was a reason for the mixed case capitalization of the DateStyle setting ? all other settings are in lowercase. Even DateStyle is in lowercase in the postgresql.conf file. If there's none, here is a patch (CVS HEAD) to put it in lowercase. Regards. -- Guillaume.
Re: DateStyle config variable
От:
Guillaume Lelarge <guillaume@lelarge.info>
Дата:
Guillaume Lelarge a écrit :
> I wondered if there was a reason for the mixed case capitalization of
> the DateStyle setting ? all other settings are in lowercase. Even
> DateStyle is in lowercase in the postgresql.conf file.
>
> If there's none, here is a patch (CVS HEAD) to put it in lowercase.
>
Sorry, I forgot to add the patch... :-/
Regards.
--
Guillaume.
Index: src/sgml/config.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/config.sgml,v
retrieving revision 1.99
diff -u -3 -p -r1.99 config.sgml
--- src/sgml/config.sgml 12 Dec 2006 21:30:33 -0000 1.99
+++ src/sgml/config.sgml 20 Dec 2006 19:54:00 -0000
@@ -3491,10 +3491,10 @@ SELECT * FROM parent WHERE key = 2400;
-
- DateStyle (string)
+
+ datestyle (string)
- DateStyle</> configuration parameter
+ datestyle</> configuration parameter
Index: src/sgml/datetime.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/datetime.sgml,v
retrieving revision 2.55
diff -u -3 -p -r2.55 datetime.sgml
--- src/sgml/datetime.sgml 17 Oct 2006 21:03:20 -0000 2.55
+++ src/sgml/datetime.sgml 20 Dec 2006 19:54:00 -0000
@@ -143,7 +143,7 @@
Otherwise the date field ordering is assumed to follow the
- DateStyle</> setting: mm-dd-yy, dd-mm-yy, or yy-mm-dd.
+ datestyle</> setting: mm-dd-yy, dd-mm-yy, or yy-mm-dd.
Throw an error if a month or day field is found to be out of range.
Index: src/sgml/libpq.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/libpq.sgml,v
retrieving revision 1.221
diff -u -3 -p -r1.221 libpq.sgml
--- src/sgml/libpq.sgml 19 Dec 2006 01:53:36 -0000 1.221
+++ src/sgml/libpq.sgml 20 Dec 2006 19:54:02 -0000
@@ -885,7 +885,7 @@ Parameters reported as of the current re
client_encoding</>,
is_superuser</>,
session_authorization</>,
-DateStyle</>,
+datestyle</>,
TimeZone</>,
integer_datetimes</>, and
standard_conforming_strings</>.
Index: src/sgml/protocol.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/protocol.sgml,v
retrieving revision 1.66
diff -u -3 -p -r1.66 protocol.sgml
--- src/sgml/protocol.sgml 6 Sep 2006 20:40:47 -0000 1.66
+++ src/sgml/protocol.sgml 20 Dec 2006 19:54:02 -0000
@@ -1050,7 +1050,7 @@
client_encoding</>,
is_superuser</>,
session_authorization</>,
- DateStyle</>,
+ datestyle</>,
TimeZone</>,
integer_datetimes</>, and
standard_conforming_strings</>.
Index: src/sgml/release.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/release.sgml,v
retrieving revision 1.488
diff -u -3 -p -r1.488 release.sgml
--- src/sgml/release.sgml 2 Dec 2006 00:46:46 -0000 1.488
+++ src/sgml/release.sgml 20 Dec 2006 19:54:04 -0000
@@ -1438,12 +1438,12 @@ links to the main documentation.
Make initdb</>
detect the operating system locale and set the default
- DateStyle</> accordingly (Peter)
+ datestyle</> accordingly (Peter)
This makes it more likely that the installed
- postgresql.conf</> DateStyle</> value will
+ postgresql.conf</> datestyle</> value will
be as desired.
Index: src/sgml/ref/copy.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v
retrieving revision 1.77
diff -u -3 -p -r1.77 copy.sgml
--- src/sgml/ref/copy.sgml 18 Sep 2006 19:54:01 -0000 1.77
+++ src/sgml/ref/copy.sgml 20 Dec 2006 19:54:04 -0000
@@ -346,10 +346,10 @@ COPY coun
COPY input and output is affected by
- DateStyle. To ensure portability to other
+ datestyle. To ensure portability to other
PostgreSQL installations that might use
- non-default DateStyle settings,
- DateStyle should be set to ISO</> before
+ non-default datestyle settings,
+ datestyle should be set to ISO</> before
using COPY TO</>.
Index: src/sgml/ref/show.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/show.sgml,v
retrieving revision 1.42
diff -u -3 -p -r1.42 show.sgml
--- src/sgml/ref/show.sgml 16 Sep 2006 00:30:20 -0000 1.42
+++ src/sgml/ref/show.sgml 20 Dec 2006 19:54:04 -0000
@@ -138,11 +138,11 @@ SHOW ALL
Examples
- Show the current setting of the parameter DateStyle:
+ Show the current setting of the parameter datestyle:
-SHOW DateStyle;
- DateStyle
+SHOW datestyle;
+ datestyle
-----------
ISO, MDY
(1 row)
Re: DateStyle config variable
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Guillaume Lelarge writes: >> I wondered if there was a reason for the mixed case capitalization of >> the DateStyle setting ? all other settings are in lowercase. Even >> DateStyle is in lowercase in the postgresql.conf file. DateStyle and TimeZone have both historically been spelled like that, and are delivered to client code in that form (not only in SHOW but in the lower-level ParameterStatus message). I think the odds of breaking client-side code are very high if we change it. regards, tom lane