Re: Timestamp input + copy - Mailing list pgsql-general

From Kevin Bartz
Subject Re: Timestamp input + copy
Date
Msg-id 20040807025355.734F040076@omta12.mta.everyone.net
Whole thread Raw
In response to Timestamp input + copy  ("Kevin Bartz" <kbartz@loyaltymatrix.com>)
List pgsql-general
Thanks for your reply, Scott. A variation on that suggestion does work very
well for me.

Kevin

-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Scott Marlowe
Sent: Thursday, July 29, 2004 12:25 AM
To: Kevin Bartz
Cc: 'Tom Lane'; pgsql-general@postgresql.org
Subject: Re: [GENERAL] Timestamp input + copy

On Wed, 2004-07-28 at 19:25, Kevin Bartz wrote:
> Thanks, guys. sed took a couple hours, but it's all done now, and the data
> are loaded. I still like Postgres!

ya know, there's an easier way (imnsho):

just import it into a text field, then update the real field with

update table tablename set realfield = substring(tempfield,1,20)

Not sure it'd be any faster, but hey, it's pretty simple to do.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


pgsql-general by date:

Previous
From: "Kevin Bartz"
Date:
Subject: Re: Out of swap space & memory
Next
From: mike g
Date:
Subject: Re: Out of swap space & memory