Re: Date format for bulk copy

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Date format for bulk copy
Дата
Msg-id 20041014152554.GA95346@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Date format for bulk copy  (Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>)
Список 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 по дате отправления:

Предыдущее
От: Robin Ericsson
Дата:
Сообщение: not using index through procedure
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Verifying a user.