Received: from sss2.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA37595 for ; Thu, 20 Apr 2000 14:15:58 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss2.sss.pgh.pa.us (8.9.3/8.9.3) with ESMTP id OAA08252; Thu, 20 Apr 2000 14:14:28 -0400 (EDT) To: Jason Earl cc: pgsql-sql@postgresql.org Subject: Re: US Date Style In-reply-to: <20000420164259.20124.qmail@web107.yahoomail.com> References: <20000420164259.20124.qmail@web107.yahoomail.com> Comments: In-reply-to Jason Earl message dated "Thu, 20 Apr 2000 09:42:59 -0700" Date: Thu, 20 Apr 2000 14:14:27 -0400 Message-ID: <8249.956254467@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200004/229 Jason Earl writes: > With a little bit of grepping through the docs I have > found something that will mostly work for me. I > simply need to have each client issue a: > SET DATESTYLE TO 'Postgres'; > This works just fine, but (of course) I would rather > have this set up as the 'default.' Does anyone know > how to do this? PGDATESTYLE (note spelling) as an environment variable in the environment of either the postmaster or the client application will do it. If you start the postmaster with that in its environment, it becomes the default setting for all backends in that installation. If you start a (libpq-based) client with that in its environment, libpq will issue the SET DATESTYLE command for you during connection startup. regards, tom lane