pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
load database from ascii files
4+ messages / 4 participants
[nested] [flat]

* load database from ascii files
@ 2003-08-01 04:26 Xinyu Hua <xhua@cse.ucsc.edu>
  2003-08-01 16:48 ` Re: [INTERFACES] load database from ascii files Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Xinyu Hua @ 2003-08-01 04:26 UTC (permalink / raw)
  To: pgsql-interfaces; +Cc: pgsql-cygwin@postgresql.org

Hi,all
I used the TPC-H database population tool DBgen and generated some ascii
files contain pipe-delimited load data for tables. How may I get these
data loaded to tables and create database in postgresql?
Thanks in advance.
Xinyu





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [INTERFACES] load database from ascii files
  2003-08-01 04:26 load database from ascii files Xinyu Hua <xhua@cse.ucsc.edu>
@ 2003-08-01 16:48 ` Robert Treat <xzilla@users.sourceforge.net>
  2003-08-01 20:51   ` Re: [INTERFACES] load database from ascii files markw@osdl.org
  0 siblings, 1 reply; 4+ messages in thread

From: Robert Treat @ 2003-08-01 16:48 UTC (permalink / raw)
  To: Xinyu Hua <xhua@cse.ucsc.edu>; +Cc: pgsql-interfaces; pgsql-cygwin@postgresql.org

On Fri, 2003-08-01 at 00:26, Xinyu Hua wrote:
> Hi,all
> I used the TPC-H database population tool DBgen and generated some ascii
> files contain pipe-delimited load data for tables. How may I get these
> data loaded to tables and create database in postgresql?
> Thanks in advance.
> Xinyu
> 

If you have the tables created, I think you only need to do 

COPY table FROM 'filename' WITH DELIMITER '|'  

from inside psql and that should work. 

Robert Treat 
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [INTERFACES] load database from ascii files
  2003-08-01 04:26 load database from ascii files Xinyu Hua <xhua@cse.ucsc.edu>
  2003-08-01 16:48 ` Re: [INTERFACES] load database from ascii files Robert Treat <xzilla@users.sourceforge.net>
@ 2003-08-01 20:51   ` markw@osdl.org
  0 siblings, 0 replies; 4+ messages in thread

From: markw@osdl.org @ 2003-08-01 20:51 UTC (permalink / raw)
  To: xzilla@users.sourceforge.net; +Cc: xhua@cse.ucsc.edu; pgsql-interfaces; pgsql-cygwin@postgresql.org

On  1 Aug, Robert Treat wrote:
> On Fri, 2003-08-01 at 00:26, Xinyu Hua wrote:
>> Hi,all
>> I used the TPC-H database population tool DBgen and generated some ascii
>> files contain pipe-delimited load data for tables. How may I get these
>> data loaded to tables and create database in postgresql?
>> Thanks in advance.
>> Xinyu
>> 
> 
> If you have the tables created, I think you only need to do 
> 
> COPY table FROM 'filename' WITH DELIMITER '|'  
> 
> from inside psql and that should work. 
> 
> Robert Treat 

We have a TPC-H derivative, Database Test 3, that works with PostgreSQL
now, if you're interested in that.  You can find your way to it at:
	http://www.osdl.org/projects/performance/dbt3-page.html

It uses the dbgen tool and creates the database for you, as well as all
the query templates to the best we could port them to work with
PostgreSQL, and scripts to run a power and throughput test.

Mark



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: load database from ascii files
@ 2003-08-01 10:50 Christoph Haller <ch@rodos.fzk.de>
  0 siblings, 0 replies; 4+ messages in thread

From: Christoph Haller @ 2003-08-01 10:50 UTC (permalink / raw)
  To: pgsql-interfaces; xhua@cse.ucsc.edu

> I used the TPC-H database population tool DBgen and generated some
ascii
> files contain pipe-delimited load data for tables. How may I get these

> data loaded to tables and create database in postgresql?

The order of things is first create, then load.
There are excellent tools to populate pg databases,
but your request is vague, so I just have to tell you RTFM.

Regards, Christoph

PS The proper list is rather [SQL].




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2003-08-01 20:51 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-01 04:26 load database from ascii files Xinyu Hua <xhua@cse.ucsc.edu>
2003-08-01 16:48 ` Robert Treat <xzilla@users.sourceforge.net>
2003-08-01 20:51   ` markw@osdl.org
2003-08-01 10:50 Re: load database from ascii files Christoph Haller <ch@rodos.fzk.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox