Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 734EA9FA2B2 for ; Tue, 22 May 2007 03:15:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 16964-05 for ; Tue, 22 May 2007 03:15:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by postgresql.org (Postfix) with ESMTP id 4315E9F9351 for ; Tue, 22 May 2007 03:15:41 -0300 (ADT) Received: from webmail.xs4all.nl (dovemail12.xs4all.nl [194.109.26.14]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id l4M6FaOB093049; Tue, 22 May 2007 08:15:36 +0200 (CEST) (envelope-from jtv@xs4all.nl) Received: from 125.24.233.43 (SquirrelMail authenticated user jtv) by webmail.xs4all.nl with HTTP; Tue, 22 May 2007 13:10:25 +0700 (ICT) Message-ID: <10260.125.24.233.43.1179814225.squirrel@webmail.xs4all.nl> In-Reply-To: <4652133D.2080103@rogers.com> References: <4651216B.2060707@rogers.com> <20070521055759.848496006EA@longblack.object-craft.com.au> <4652133D.2080103@rogers.com> Date: Tue, 22 May 2007 13:10:25 +0700 (ICT) Subject: Re: PQgetvalue failed to return column value for non-text data in binary format From: "Jeroen T. Vermeulen" To: "Jeff Lynn" Cc: "Andrew McNamara" , pgsql-interfaces@postgresql.org User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/41 X-Sequence-Number: 6548 On Tue, May 22, 2007 04:46, Jeff Lynn wrote: > This is interesting position to be taken by PostgreSQL. For simple > query, particularly with regards to reporting, one can go about using > text for all column. But a lot of time, I deal with large dataset > ingestions and extracts that tends to take many hours to perform. So I > usually prefer binary form data for performance reason. To that end, I > found there is a significant different in the time it takes to ingest or > extract data from one database to another database of totally different > vendor. Most of our company's works are done in Java nowadays, but for > large data ingestions/extract/conversion, a C program out performs Java > program fair and square, no debate there (based on actual run-time > data). For clarification, we deal with various business partners that > we have to import/export large amount of data between heterogeneous > databases that the wonderful technology of database replication does not > apply for our use. For that kind of thing, may I suggest you try using the COPY API? That may buy you more speed than transferring data in binary form would—particularly for insertions. Jeroen