X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3E1EAD1B4FD for ; Wed, 1 Oct 2003 10:47:52 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 04678-03 for ; Wed, 1 Oct 2003 07:47:04 -0300 (ADT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id E7E2FD1B52E for ; Wed, 1 Oct 2003 07:47:01 -0300 (ADT) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1A4eVc-000OgF-0Y; Wed, 01 Oct 2003 11:47:04 +0100 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.22) id 1A4eVM-0005e7-Ji; Wed, 01 Oct 2003 11:46:48 +0100 Subject: Re: setting default date format From: Oliver Elphick To: Gary Stainburn Cc: pgsql-admin@postgresql.org In-Reply-To: <200310011134.53676.gary.stainburn@ringways.co.uk> References: <200310011041.22815.gary.stainburn@ringways.co.uk> <1065003193.2921.1.camel@linda.lfix.co.uk> <200310011134.53676.gary.stainburn@ringways.co.uk> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1065005217.2920.11.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 01 Oct 2003 11:46:57 +0100 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/7 X-Sequence-Number: 10568 On Wed, 2003-10-01 at 11:34, Gary Stainburn wrote: > > In postgresql.conf: > > > > DATESTYLE = 'Postgres,European' > When I did this, and then did 'service postgresql restart' the service failed > to start. > BTW, I'm running 7.2.3 from the RH RPMS. The feature is available in 7.3 In 7.2 I seem to remember you can set an environemntal variable PGDATESTYLE when starting psql, and you may be able to use SET: SET DATESTYLE TO 'Postgres,European'; -- 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 ======================================== "Yet if any man suffer as a Christian, let him not be ashamed; but let him glorify God on this behalf." I Peter 4:16