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 45119D1B53F for ; Wed, 1 Oct 2003 10:37:21 +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 02325-04 for ; Wed, 1 Oct 2003 07:36:37 -0300 (ADT) Received: from stan.ringways.co.uk (hub.ringways.co.uk [213.38.87.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3010AD1B522 for ; Wed, 1 Oct 2003 07:36:34 -0300 (ADT) Received: from gary.ringways.co.uk ([10.1.1.2]) by stan.ringways.co.uk with esmtp (Exim 3.22 #1) id 1A4eJ3-0007Ct-00; Wed, 01 Oct 2003 11:34:05 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Gary Stainburn Organization: Ringways Garages Ltd To: Oliver Elphick Subject: Re: setting default date format Date: Wed, 1 Oct 2003 11:34:53 +0100 User-Agent: KMail/1.4.3 Cc: pgsql-admin@postgresql.org References: <200310011041.22815.gary.stainburn@ringways.co.uk> <1065003193.2921.1.camel@linda.lfix.co.uk> In-Reply-To: <1065003193.2921.1.camel@linda.lfix.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200310011134.53676.gary.stainburn@ringways.co.uk> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/6 X-Sequence-Number: 10567 On Wednesday 01 October 2003 11:13 am, Oliver Elphick wrote: > On Wed, 2003-10-01 at 10:41, Gary Stainburn wrote: > > I want to set the default date format to european dd-mm-yyyy format. > > > > Can someone tell me which file, and what I need to add. > > In postgresql.conf: > > DATESTYLE = 'Postgres,European' Hi Oliver, When I did this, and then did 'service postgresql restart' the service failed to start. I have managed to get it working by amending the pg_ctl command in /etc/rc.d/init.d/postgresql to add -o '-o -e' but as I said before I seem to remember that this was frowned upon because the next time I upgrade it'll get overridden. BTW, I'm running 7.2.3 from the RH RPMS. -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000