Re: changing datestyle

Поиск
Список
Период
Сортировка
От Karl Nack
Тема Re: changing datestyle
Дата
Msg-id alpine.DEB.1.10.0906161242210.20782@mindinao
обсуждение исходный текст
Ответ на Re: changing datestyle  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: changing datestyle  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
>>> (The fact that there are two components is a historical aberration,
>>> and I'd be the first to agree it's ugly, but that's how it works.)
>
> The second one affects field order for some of the output styles, too.
> See
> http://www.postgresql.org/docs/8.3/static/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT
> In particular, tables 8-14 and 8-15 illustrate all the output formatting
> options you have.  SQL, MDY might be the closest to what you want.

Yeah, I was re-reading that section as I got your response, and I've come
to the same conclusion. I was misunderstanding how the two components work
together. _Now_ I see why it's ugly!

I knew I was being a knucklehead; thanks for the insight.

Is there any reason I shouldn't simply set my server default to 'SQL, MDY'
instead of specifying it at connection time (or per database/user)?


Karl Nack

Futurity, Inc.
773-506-2007



В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: changing datestyle
Следующее
От: Tom Lane
Дата:
Сообщение: Re: changing datestyle