X-Original-To: pgsql-cygwin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 5946CD1C50C; Fri, 1 Aug 2003 20:52:11 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 70821-03; Fri, 1 Aug 2003 17:51:04 -0300 (ADT) Received: from mail.osdl.org (fw.osdl.org [65.172.181.6]) by svr1.postgresql.org (Postfix) with ESMTP id E2115D1C4BD; Fri, 1 Aug 2003 17:52:08 -0300 (ADT) Received: from osdl.org (markw@ibm-b.pdx.osdl.net [172.20.1.51]) by mail.osdl.org (8.11.6/8.11.6) with ESMTP id h71KpvI23526; Fri, 1 Aug 2003 13:51:58 -0700 Message-Id: <200308012051.h71KpvI23526@mail.osdl.org> Date: Fri, 1 Aug 2003 13:51:54 -0700 (PDT) From: markw@osdl.org Subject: Re: [INTERFACES] load database from ascii files To: xzilla@users.sourceforge.net Cc: xhua@cse.ucsc.edu, pgsql-interfaces@postgresql.org, pgsql-cygwin@postgresql.org In-Reply-To: <1059756526.22273.1635.camel@camel> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/7 X-Sequence-Number: 2647 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