Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EECC2476117 for ; Wed, 11 Dec 2002 11:08:37 -0500 (EST) Received: from mpls-qmqp-01.inet.qwest.net (mpls-qmqp-01.inet.qwest.net [63.231.195.112]) by postgresql.org (Postfix) with SMTP id 2A2DB475FDA for ; Wed, 11 Dec 2002 11:08:37 -0500 (EST) Received: (qmail 65457 invoked by uid 0); 11 Dec 2002 16:08:42 -0000 Received: from unknown (63.231.195.1) by mpls-qmqp-01.inet.qwest.net with QMQP; 11 Dec 2002 16:08:42 -0000 Received: from cpe-24-221-183-190.ca.sprintbbd.net (HELO amadeus) (24.221.183.190) by mpls-pop-01.inet.qwest.net with SMTP; 11 Dec 2002 16:08:41 -0000 Received: from jasons by amadeus with local (Exim 3.35 #1 (Debian)) id 18M1Bn-0004LL-00 for ; Wed, 11 Dec 2002 00:21:51 -0700 Date: 11 Dec 2002 00:21:50 -0700 Message-ID: <87d6o9qaup.fsf@openinformatics.com> From: "Jason E. Stewart" To: pgsql-interfaces@postgresql.org Subject: Re: ["Dean Arnold" ] Re: Array Binding Status? References: <87fztjt05d.fsf@openinformatics.com> In-Reply-To: <87fztjt05d.fsf@openinformatics.com> Lines: 78 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/38 X-Sequence-Number: 3451 Hi, I never heard back about this. Does anyone know if the postgres C API and the server backend have the ability to handle this? Thanks, jas. "Jason E. Stewart" writes: > Hi all, > > I'm included a piece of a discussion that was had on the Perl DBI > mailing list a while back. A new feature was added that enable > applications to pass off arrays of placeholder values for each > placeholder in a prepared SQL statement instead of only a single value > for each placeholder. > > This meant a significant speed-up for things like large INSERT > statements. > > My question is does Postgres have the necessary abilities to handle > this feature? > > Thanks ahead of time, > jas. > > From: "Dean Arnold" > Subject: Re: Array Binding Status? > To: "DBI-dev" , Andrew_Brown@adc.com, > "Jason E. Stewart" , > "Jeff Urlwin" > Date: Fri, 8 Mar 2002 07:08:35 -0800 > > > > Thanks Andrew, > > > > > > The question isn't whether the current DBD::Pg supports the behavior, > > > it doesn't, the issue is whether the Postgres C API has an ability to > > > do these array-based inserts. > > > > > > I would definately have to modify DBD::Pg's C code to support this. > > > > > > I was just wondering from Dean and Jeff what kind of C API methods did > > > they need to use to get it working for ODBC. > > > > It's all part of the ODBC spec/API. > > > > Jeff > > > > Or check the Oracle OCI array binding (the function names > escape me at the moment). > > The deeper issue is whether the DBMS supports a bulk > operation, esp in a transactional context. E.g., Teradata > has bulk operation utilities ala SQLLoader, but > currently doesn't support bulk operations in a > regular SQL connection. > > While adding an iterative > query execution into the C API code will help some, > the big boosts occur when the DBMS can gobble > up a stream of 1,000+ placeholder tuples at once > (and esp. for INSERT, dump 'em directly to disk), > as e.g. Oracle and DB2 do. > > Dean > > > > ---------- > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)