Re: Problem with the to_timestamp function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Luca Clementi <lclement(at)ucsd(dot)edu>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problem with the to_timestamp function
Date: 2008-01-31 18:09:03
Message-ID: 10461.1201802943@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Luca Clementi <lclement(at)ucsd(dot)edu> writes:
> What do you mean with th standard input converter, you mean casting that
> string into a date with the default locate format. This won't work,
> because the machine where the DB is running is set to en.US, so it won't
> be able to parse that date. That's why I am using the to_timestamp.

Locale has nothing to do with this --- at most you might want to adjust
the datestyle parameter.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Marcin Krawczyk 2008-02-01 15:24:37 aggregate reverse
Previous Message Luca Clementi 2008-01-31 18:00:10 Re: Problem with the to_timestamp function