Re: Re: [GENERAL] FM format modifier does not remove leading zero from year

Bruce Momjian <bruce@momjian.us>

From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@commandprompt.com>, Guy Rouillier <guyr-ml1@burntmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-02-08T22:44:13Z
Lists: pgsql-hackers, pgsql-general
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > What's the point of not following Oracle here, since this is solely an
> > Oracle compatibility function?
> 
> Changing FM's behavior like that will break approximately every user
> of to_char() ...

I would love to know why we are finding out about this incompatibility
only in 2010, years after we implemented this.  Is no one porting
multi-specification "FM" to_char() strings from Oracle to PostgreSQL?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +