Re: bulk loader

Поиск
Список
Период
Сортировка
Искать
От
Brent Wood
Тема
Re: bulk loader
Дата
в 10:42:46
Msg-id
20050520111403.U45363@storm-user.niwa.co.nz
Ответ на
bulk loader (Hrishikesh Deshmukh)
Список
Дерево обсуждения
Re: bulk loader Christopher Browne <cbbrowne@acm.org>


On Thu, 19 May 2005, Hrishikesh Deshmukh wrote:

> Hi All,
>
> Is there a "bulk loader" in postgresql with which one can read in say
> a tab delimited format text file. Before one does all one has to do is
> create the table with text file column names as attributes, once it is
> on DBMS world it will be a simple table (non-relational)!!!!

See copy


from memory, pretty much as in:

cat  | \
  psql -d $DB -c "copy  from STDIN [with delimiter ','];"

You'll see that db users can't copy a file into a table but can copy
STDIN, so this approach works well.

Brent Wood
В списке pgsql-general по дате отправления
От: JC
Дата:
Сообщение: problems with Win 2000
От: Edmund Bacon
Дата:
Сообщение: Re: Count and Results together
FAQ