Re: Timestamp input + copy

From: "Kevin Bartz" <kbartz(at)loyaltymatrix(dot)com>
To: "'Scott Marlowe'" <smarlowe(at)qwest(dot)net>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Timestamp input + copy
Date: 2004-08-07 02:48:05
Message-ID: 20040807025355.734F040076@omta12.mta.everyone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Scott Marlowe
Sent: Thursday, July 29, 2004 12:25 AM
To: Kevin Bartz
Cc: 'Tom Lane'; pgsql-general(at)postgresql(dot)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

Browse pgsql-general by date

  From Date Subject
Next Message Randy Yates 2004-08-07 02:56:08 Re: Postgres and Tools Intro?
Previous Message Kevin Bartz 2004-08-07 02:32:55 Re: Out of swap space & memory