pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Luca Clementi <lclement@ucsd.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem with the to_timestamp function
Date: Thu, 31 Jan 2008 13:09:03 -0500
Message-ID: <10461.1201802943@sss.pgh.pa.us> (raw)
In-Reply-To: <47A20CAA.609@ucsd.edu>
References: <47A10A1D.5020408@ucsd.edu>
	<27257.1201739170@sss.pgh.pa.us>
	<47A12CCB.1000807@ucsd.edu>
	<751.1201759441@sss.pgh.pa.us>
	<47A20CAA.609@ucsd.edu>

Luca Clementi <lclement@ucsd.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



view thread (7+ messages)

Message-ID: <10461.1201802943@sss.pgh.pa.us>
Permalink:  ../10461.1201802943@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10461.1201802943@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lclement@ucsd.edu
  Subject: Re: Problem with the to_timestamp function
  In-Reply-To: <10461.1201802943@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox