pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: azwa@nc.com.my
To: pgsql-sql@postgresql.org
Subject: Re: sqlloader features
Date: Fri, 12 Mar 2004 06:55:53 -0800 (PST)
Message-ID: <20040312145554.85865.qmail@web20808.mail.yahoo.com> (raw)
In-Reply-To: <OF9B5F94B0.416AB2A1-ONFFFFFF83.004D271B@nc.com.my>

--- azwa@nc.com.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 you’re looking for faster
http://search.yahoo.com



view thread (2+ messages)

Message-ID: <20040312145554.85865.qmail@web20808.mail.yahoo.com>
Permalink:  ../20040312145554.85865.qmail@web20808.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040312145554.85865.qmail@web20808.mail.yahoo.com

 · 

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-sql@postgresql.org
  Cc: jeff_eckermann@yahoo.com, azwa@nc.com.my
  Subject: Re: sqlloader features
  In-Reply-To: <20040312145554.85865.qmail@web20808.mail.yahoo.com>

* 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