pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Jim Fu <Jim.Fu@LogixCom.com>
Cc: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: to_date
Date: Mon, 13 Feb 2006 15:26:38 -0600
Message-ID: <1139865997.22740.164.camel@state.g2switchworks.com> (raw)
In-Reply-To: <2BE5FA188E433143A09D9881BB923D32096F32@hou1x.Logixcom.com>
References: <2BE5FA188E433143A09D9881BB923D32096F32@hou1x.Logixcom.com>

On Mon, 2006-02-13 at 15:22, Jim Fu wrote:
> Thank you Michael for the info!
> 
> I have the original date info as mmddyy, when I use copy tabname from filename, it fails due to mismatch between raw date info and date data type in the database. It seems like I had to convert the raw date info to be like 'yyyy-mm-dd' to match PostgreSQL date default format in order to use copy command.


Take a look here:

http://www.postgresql.org/docs/8.1/static/runtime-config-client.html#GUC-DATESTYLE
and here:
http://www.postgresql.org/docs/8.1/static/datatype-datetime.html



view thread (6+ messages)  latest in thread

Message-ID: <1139865997.22740.164.camel@state.g2switchworks.com>
Permalink:  ../1139865997.22740.164.camel@state.g2switchworks.com/
Also on:    postgresql.org/message-id/1139865997.22740.164.camel@state.g2switchworks.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: smarlowe@g2switchworks.com, Jim.Fu@LogixCom.com, mike@fuhr.org
  Subject: Re: to_date
  In-Reply-To: <1139865997.22740.164.camel@state.g2switchworks.com>
  References: <2BE5FA188E433143A09D9881BB923D32096F32@hou1x.Logixcom.com> <1139865997.22740.164.camel@state.g2switchworks.com>

* 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