Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 711B9476121 for ; Wed, 6 Nov 2002 16:06:16 -0500 (EST) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by postgresql.org (Postfix) with ESMTP id D2B614760CB for ; Wed, 6 Nov 2002 16:06:15 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 189XNK-0000pk-0U; Wed, 06 Nov 2002 21:06:11 +0000 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 189XNK-0006lL-00; Wed, 06 Nov 2002 21:06:10 +0000 Subject: Re: Set Datestyle doesn't appear to be working From: Oliver Elphick To: Jeff Self Cc: pgsql-admin@postgresql.org In-Reply-To: <1036610724.8388.3.camel@jselfpc> References: <1036610724.8388.3.camel@jselfpc> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 06 Nov 2002 21:06:09 +0000 Message-Id: <1036616770.14768.2069.camel@linda> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/77 X-Sequence-Number: 6265 On Wed, 2002-11-06 at 19:25, Jeff Self wrote: > I'm running PostgreSQL 7.2.1 on a Debian Linux server. I have added the > line: PGDATESTYLE=ISO,US to postmaster.conf and restarted PostgreSQL but > any fields with the Date type still show up as '2002-11-06'. I want them > to show up as '11-06-2002'. ISO format means "yyyy-mm-dd"; you are getting exactly what you asked for. The ",US" part of your spec is controlling how dates are interpreted on input, so it is not useless, but to get what you want you must specify "POSTGRES,US". -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Let all that you do be done in love." 1 Corinthians 16:14