X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1F344D1CCD7 for ; Fri, 12 Mar 2004 14:55:57 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 37807-08 for ; Fri, 12 Mar 2004 10:55:57 -0400 (AST) Received: from web20808.mail.yahoo.com (web20808.mail.yahoo.com [216.136.226.197]) by svr1.postgresql.org (Postfix) with SMTP id 64690D1B4B7 for ; Fri, 12 Mar 2004 10:55:53 -0400 (AST) Message-ID: <20040312145554.85865.qmail@web20808.mail.yahoo.com> Received: from [24.248.12.72] by web20808.mail.yahoo.com via HTTP; Fri, 12 Mar 2004 06:55:53 PST Date: Fri, 12 Mar 2004 06:55:53 -0800 (PST) From: Jeff Eckermann Subject: Re: sqlloader features To: azwa@nc.com.my, pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/149 X-Sequence-Number: 17248 --- 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