Re: Date format for bulk copy

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Pierre-Fr?d?ric Caillaud <lists(at)boutiquenumerique(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Date format for bulk copy
Date: 2004-10-14 15:25:54
Message-ID: 20041014152554.GA95346@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Hallgren 2004-10-14 15:27:20 Verifying a user.
Previous Message Ian Harding 2004-10-14 15:16:26 Re: creating audit tables