Re: US Date Style - Mailing list pgsql-sql

From Tom Lane
Subject Re: US Date Style
Date
Msg-id 8249.956254467@sss.pgh.pa.us
Whole thread Raw
In response to Re: US Date Style  (Jason Earl <jdearl@yahoo.com>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Jason Earl
Date:
Subject: Re: US Date Style
Next
From: Daniel Spratlen
Date:
Subject: 7.0rc1