Re: US Date Style

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: US Date Style
Дата
Msg-id 8249.956254467@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: US Date Style  (Jason Earl <jdearl@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Jason Earl
Дата:
Сообщение: Re: US Date Style
Следующее
От: Daniel Spratlen
Дата:
Сообщение: 7.0rc1