Re: [INTERFACES] load database from ascii files
От | markw@osdl.org |
---|---|
Тема | Re: [INTERFACES] load database from ascii files |
Дата | |
Msg-id | 200308012051.h71KpvI23526@mail.osdl.org обсуждение исходный текст |
Ответ на | Re: [INTERFACES] load database from ascii files (Robert Treat <xzilla@users.sourceforge.net>) |
Список | pgsql-cygwin |
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
В списке pgsql-cygwin по дате отправления: