Re: changing datestyle - Mailing list pgsql-novice

From Karl Nack
Subject Re: changing datestyle
Date
Msg-id alpine.DEB.1.10.0906161242210.20782@mindinao
Whole thread Raw
In response to Re: changing datestyle  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: changing datestyle
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: changing datestyle
Next
From: Tom Lane
Date:
Subject: Re: changing datestyle