Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 4EF15476CD7 for ; Tue, 18 Jun 2002 10:34:53 -0400 (EDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by postgresql.org (Postfix) with ESMTP id 9BA42476869 for ; Tue, 18 Jun 2002 10:22:20 -0400 (EDT) Received: from 1cust84.tnt2.richmond.in.da.uu.net ([63.26.248.84] helo=nick) by flamingo.mail.pas.earthlink.net with smtp (Exim 3.33 #2) id 17KJs4-0007Yn-00; Tue, 18 Jun 2002 07:22:13 -0700 Reply-To: From: "Nick Fankhauser" To: "Tom Lane" Cc: "Martin Teoh" , Subject: Re: set permanent date style Date: Tue, 18 Jun 2002 09:19:04 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <25685.1024407566@sss.pgh.pa.us> X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Archive-Number: 200206/119 X-Sequence-Number: 4554 Hmmm... I'm confused. It works for us. When I make this change in postmaster.conf for our v7.2 install, it has the desired effect. Perhaps this file is specific to the Debian package. Is postmaster.conf generally used in all distributions? Here is the documentation I found in that file: # How (by default) to present dates to the frontend; the user can override # this setting for his own session. The choices are: # Style Date Datetime # ---------------------------------------------------------------- # ISO 1999-07-17 1999-07-17 07:09:18+01 # SQL 17/07/1999 17/07/1999 07:09:19.00 BST # POSTGRES 17-07-1999 Sat 17 Jul 07:09:19 1999 BST # GERMAN 17.07.1999 17.07.1999 07:09:19.00 BST # # It is also possible to specify month-day or day-month ordering in date # input and output. Americans tend to use month-day; Europeans use # day-month. Specify European or nonEuropean. Separate the two parameters # by a comma with no spaces PGDATESTYLE=SQL,nonEuropean -Nick > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > Sent: Tuesday, June 18, 2002 8:39 AM > To: nickf@ontko.com > Cc: Martin Teoh; pgsql-admin@postgresql.org > Subject: Re: [ADMIN] set permanent date style > > > "Nick Fankhauser" writes: > > in postmaster.conf, add a line that looks something like this: > > PGDATESTYLE=ISO,European > > I do not believe that will work in any released version. It will work > to set PGDATESTYLE as an environment variable in the postmaster's > environment, however. > > As of 7.3 it will be possible to set DateStyle in postgresql.conf, > but up through 7.2 DateStyle is specially handled and isn't in the > set of variables that postgresql.conf knows about :-( > > For the particular problem at hand, adding -e to the postmaster's > command line switches might have been enough ... > > regards, tom lane >