Re: date comparisons - Mailing list pgsql-general

From Richard Huxton
Subject Re: date comparisons
Date
Msg-id 457EEDB9.8090903@archonet.com
Whole thread Raw
In response to Re: date comparisons  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: date comparisons  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> "Belinda M. Giardine" <giardine@bio.cse.psu.edu> writes:
>> Should it be this way?
>
> Well, to_timestamp() is apparently designed not to complain when the
> input doesn't match the format, which is not my idea of good behavior
> ... but your example is in fact wrong.  'Month' means a 9-character
> field, so you are short a couple of spaces.

The padding is on *input* too? Is this an Oracle compatibility "feature"?

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Why DISTINCT ... DESC is slow?
Next
From: Tom Lane
Date:
Subject: Re: date comparisons