From: | Guy Rouillier <guyr-ml1(at)burntmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: FM format modifier does not remove leading zero from year |
Date: | 2010-01-07 04:52:19 |
Message-ID: | 4B456883.50301@burntmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 1/6/2010 3:29 PM, Tom Lane wrote:
> Guy Rouillier<guyr-ml1(at)burntmail(dot)com> writes:
>> Oracle states clearly in the SQL Reference manual:
>
>> "A modifier can appear in a format model more than once. In such a case,
>> each subsequent occurrence toggles the effects of the modifier."
>
> *Toggles* the effect of the modifier? Egad, what drunken idiot chose
> that specification?
Eh, tomato, tomahto. If you assume that someone will strip leading
zeroes consistently, the Oracle approach makes sense. That would be a
reasonable assumption to make; why would I strip the zero off the month
but leave it on the day? So, in the unusual case that you want to do
such a thing, you are asked to use a second occurrence of FM to turn
zero suppression back off.
--
Guy Rouillier
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2010-01-07 04:52:50 | Re: WAL archiving is stuck on an old file that was deleted -- how to get it going again? (8.4.2) |
Previous Message | Greg Smith | 2010-01-07 04:49:35 | Re: PostgreSQL Write Performance |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2010-01-07 05:24:43 | Re: pg_migrator issues |
Previous Message | Tom Lane | 2010-01-07 04:14:42 | Re: [COMMITTERS] pgsql: Support ALTER TABLESPACE name SET/RESET ( tablespace_options ). |