bulk loader
bulk loader
От:
Hrishikesh Deshmukh <hdeshmuk@gmail.com>
Дата:
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)!!!! Thanks, Hrishi
Re: bulk loader
От:
"Guy Rouillier" <guyr@masergy.com>
Дата:
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 the COPY command. Tab is the default delimiter in text mode. -- Guy Rouillier
Re: bulk loader
От:
Douglas McNaught <doug@mcnaught.org>
Дата:
Hrishikesh Deshmukh writes: > 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)!!!! Read up on the COPY command. -Doug
Re: bulk loader
От:
Christopher Browne <cbbrowne@acm.org>
Дата:
After takin a swig o' Arrakan spice grog, hdeshmuk@gmail.com (Hrishikesh Deshmukh) belched out:
> 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)!!!!
There is the built in "COPY" command which can do this sort of thing.
Jan Wieck wrote a "load" tool that does a more sophisticated job of
slicing up the data. Look at pgFoundry.org for "pgloader". There are
thoughts of trying to make this work much like Oracle's SQL*Loader
product.
--
wm(X,Y):-write(X),write('@'),write(Y). wm('cbbrowne','gmail.com').
http://linuxdatabases.info/info/postgresql.html
FLORIDA: We've been Gored by the bull of politics and we're Bushed.
Re: bulk loader
От:
Brent Wood <b.wood@niwa.co.nz>
Дата:
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