Re: Date format for bulk copy - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Date format for bulk copy
Date
Msg-id 20041014152554.GA95346@winnie.fuhr.org
Whole thread Raw
In response to Re: Date format for bulk copy  (Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>)
List pgsql-general
On Wed, Oct 13, 2004 at 08:36:50PM +0200, Pierre-Fr?d?ric Caillaud wrote:
>
>     You can have your script make a query in the database to fetch the
>     data  types of the fields and then know which ones are to be transformed
> and  how. The script would take as arguments a dump file and a
> database,schema.table, would read the file and pipe the transformed data
> into a psql with a COPY FROM stdin command... could save you a lot of work
> no ?

That's a good idea, and it would mean not having to hack PostgreSQL
or create custom types or custom input functions for standard types.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Robin Ericsson
Date:
Subject: not using index through procedure
Next
From: Thomas Hallgren
Date:
Subject: Verifying a user.