Re: flat file database to postgres

Поиск
Список
Период
Сортировка
От Frank Finner
Тема Re: flat file database to postgres
Дата
Msg-id 20040316143023.29ad9dbd.postgresql@finner.de
обсуждение исходный текст
Ответ на flat file database to postgres  (noor@cs.man.ac.uk)
Ответы Re: flat file database to postgres  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-sql
On Tue, 16 Mar 2004 12:33:57 -0000 (GMT) noor@cs.man.ac.uk sat down, thought long and then wrote:

> 
> Hi
> 
> Does anybody know how to export data from a flatfile (using perl) database
> to postgres?
> 
> Thanks

If it is some kind of CSV (text with separators) you could use DBD::CSV for reading and DBD::Pg for
writing. Or you read the file with Perl´s standard functions, treat the data to be
PostgreSQL-insert-query-compatible (regarding apostrophes for example) and then use DBD::Pg (that´s
what I usually do). If you have some kind of DBase files, you can use DBD::XBase.

Regards, Frank.

В списке pgsql-sql по дате отправления:

Предыдущее
От: Dana Hudes
Дата:
Сообщение: Re: could not create shared memory segment: Invalid argument
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: conversion of postgres database to oracle