Skip site navigation (1) Skip section navigation (2)

Re: sqlloader features

From: Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com>
To: azwa(at)nc(dot)com(dot)my, pgsql-sql(at)postgresql(dot)org
Subject: Re: sqlloader features
Date: 2004-03-12 14:55:53
Message-ID: 20040312145554.85865.qmail@web20808.mail.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-sql
--- azwa(at)nc(dot)com(dot)my wrote:
> Hi ,
> 
> 
>    does postgresql support for the sql loader
> functionality like oracle 
> does ??? if no, is there any tools specific to do
> this task connect to 
> postgresql database???
> i'm looking into open-source tools that can do
> import & export facility. 
> thanks in advance

The PostgreSQL "COPY" command is very efficient at
bulk loading, but has restrictive requirements as to
the data formats that it will accept.

I haven't tried this one, but it might work for you:
http://gborg.postgresql.org/project/pgimport/projdisplay.php

Otherwise your best alternative is probably to write a
custom script using something like Perl, TCL, Awk or
Sed to edit your data, which can then be piped to
COPY.  Something like:
perlscript datafile | psql -c "copy table from stdin"
database

You can read about "COPY" in the "SQL Commands"
section of the manual.
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com

In response to

pgsql-sql by date

Next:From: Richard HuxtonDate: 2004-03-12 15:20:19
Subject: Re: SQL query --- big question???
Previous:From: Andrei BintintanDate: 2004-03-12 14:36:14
Subject: SQL query --- big question???

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group