Re: Timestamp input + copy

Поиск
Список
Период
Сортировка
От Kevin Bartz
Тема Re: Timestamp input + copy
Дата
Msg-id 20040807025355.734F040076@omta12.mta.everyone.net
обсуждение исходный текст
Ответ на Timestamp input + copy  ("Kevin Bartz" <kbartz@loyaltymatrix.com>)
Список 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 по дате отправления:

Предыдущее
От: "Kevin Bartz"
Дата:
Сообщение: Re: Out of swap space & memory
Следующее
От: mike g
Дата:
Сообщение: Re: Out of swap space & memory