From: Robert Treat <xzilla@users.sourceforge.net>
To: Xinyu Hua <xhua@cse.ucsc.edu>
Cc: pgsql-interfaces@postgresql.org
Cc: pgsql-cygwin@postgresql.org
Subject: Re: [INTERFACES] load database from ascii files
Date: 01 Aug 2003 12:48:46 -0400
Message-ID: <1059756526.22273.1635.camel@camel> (raw)
In-Reply-To: <Pine.GSO.4.44.0307312120370.15858-100000@sundance.cse.ucsc.edu>
References: <Pine.GSO.4.44.0307312120370.15858-100000@sundance.cse.ucsc.edu>
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
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: xzilla@users.sourceforge.net, xhua@cse.ucsc.edu, pgsql-cygwin@postgresql.org
Subject: Re: [INTERFACES] load database from ascii files
In-Reply-To: <1059756526.22273.1635.camel@camel>
* 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