pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: markw@osdl.org
To: xzilla@users.sourceforge.net
Cc: xhua@cse.ucsc.edu
Cc: pgsql-interfaces@postgresql.org
Cc: pgsql-cygwin@postgresql.org
Subject: Re: [INTERFACES] load database from ascii files
Date: Fri, 1 Aug 2003 13:51:54 -0700 (PDT)
Message-ID: <200308012051.h71KpvI23526@mail.osdl.org> (raw)
In-Reply-To: <1059756526.22273.1635.camel@camel>

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



view thread (4+ messages)

Message-ID: <200308012051.h71KpvI23526@mail.osdl.org>
Permalink:  ../200308012051.h71KpvI23526@mail.osdl.org/
Also on:    postgresql.org/message-id/200308012051.h71KpvI23526@mail.osdl.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: markw@osdl.org, xzilla@users.sourceforge.net, xhua@cse.ucsc.edu, pgsql-cygwin@postgresql.org
  Subject: Re: [INTERFACES] load database from ascii files
  In-Reply-To: <200308012051.h71KpvI23526@mail.osdl.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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