Re: to_date function - Mailing list pgsql-sql

From Tom Lane
Subject Re: to_date function
Date
Msg-id 20904.1189175157@sss.pgh.pa.us
Whole thread Raw
In response to Re: to_date function  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: to_date function
List pgsql-sql
"A. Kretschmer" <andreas.kretschmer@schollglas.com> writes:
> am  Fri, dem 07.09.2007, um 17:22:30 +1200 mailte anru chen folgendes:
>> seems like "to_date" function only work correctly for current month.

> No, seems like to_char only work corrently if the length of the month
> correctly...

You need to use FMMonth not Month if you want it to be lax about the
width of the month field.  (I think we decided that's a bug and 8.3
will take it either way, but existing releases want the FM.)
        regards, tom lane


pgsql-sql by date:

Previous
From: Aleksandr Vinokurov
Date:
Subject: SERIAL type's sequence is double-called or ?
Next
From: Richard Huxton
Date:
Subject: Re: SERIAL type's sequence is double-called or ?