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/