From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jason Earl <jdearl@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: US Date Style
Date: Thu, 20 Apr 2000 14:14:27 -0400
Message-ID: <8249.956254467@sss.pgh.pa.us> (raw)
In-Reply-To: <20000420164259.20124.qmail@web107.yahoomail.com>
References: <20000420164259.20124.qmail@web107.yahoomail.com>
Jason Earl <jdearl@yahoo.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, jdearl@yahoo.com
Subject: Re: US Date Style
In-Reply-To: <8249.956254467@sss.pgh.pa.us>
References: <20000420164259.20124.qmail@web107.yahoomail.com> <8249.956254467@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox