Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id BFDFA9FB33A for ; Mon, 16 Oct 2006 07:35:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 02365-08 for ; Mon, 16 Oct 2006 10:35:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from nihrelayxway2.hub.nih.gov (mailfwd.nih.gov [128.231.90.107]) by postgresql.org (Postfix) with ESMTP id 1E6889FB28C for ; Mon, 16 Oct 2006 07:35:00 -0300 (ADT) Received: from pressa.nci.nih.gov ([137.187.209.230]) by nihrelayxway2.hub.nih.gov with ESMTP; 16 Oct 2006 06:35:00 -0400 X-IronPortListener: NIH_Relay X-SBRS: None X-IronPort-AV: i="4.09,314,1157342400"; d="scan'208"; a="203127837:sNHT16325864" From: Sean Davis Reply-To: sdavis2@mail.nih.gov Organization: NIH/NCI To: pgsql-interfaces@postgresql.org Subject: Re: Bulk Load and Extract from PostgreSQL Date: Mon, 16 Oct 2006 06:34:45 -0400 User-Agent: KMail/1.9.1 Cc: Sandeep Khandelwal References: <20061016070753.42936.qmail@web33304.mail.mud.yahoo.com> In-Reply-To: <20061016070753.42936.qmail@web33304.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610160634.45848.sdavis2@mail.nih.gov> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/10 X-Sequence-Number: 6293 On Monday 16 October 2006 03:07, Sandeep Khandelwal wrote: > Hi All. > > I want to extract and Load data from PostgreSQL using Libpq C API. Please > let me know which approach will be good to load large number of rows into > PostgreSQL(Insert or COPY FROM) and, which approach will be good to extract > large number of rows from PostgreSQL (COPY TO or SELECT). I want to handle > all the data types supported in the PostgreSQL. copy is the faster way to go for a single table. Sean