Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1953D9FBF4F for ; Tue, 5 Jun 2007 11:58:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 73833-01-5 for ; Tue, 5 Jun 2007 11:58:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from ns1.officenet.no (ns1.officenet.no [193.212.174.3]) by postgresql.org (Postfix) with ESMTP id 49E959FBEE1 for ; Tue, 5 Jun 2007 11:58:49 -0300 (ADT) Received: from [85.112.130.182] (helo=krogh-laptop.local) by ns1.officenet.no with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.62) (envelope-from ) id 1HvaUe-0000hu-4k for pgsql-jdbc@postgresql.org; Tue, 05 Jun 2007 16:58:46 +0200 From: Andreas Joseph Krogh Organization: OfficeNet AS To: pgsql-jdbc@postgresql.org Subject: Re: Array paramiters Date: Tue, 5 Jun 2007 16:58:49 +0200 User-Agent: KMail/1.9.7 References: <200706051632.31349.andreak@officenet.no> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200706051658.50000.andreak@officenet.no> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/13 X-Sequence-Number: 17075 On Tuesday 05 June 2007 16:46:48 ben sagal wrote: > I would ideally like to use a prepared statement, in which i can on each > execution insert a different array? the method u suggest will not allow u= se > of a prepared statement. What do you think the variable "ps" is? Most databases have a cache of preparedstatements and will manage to reuse = one=20 based on the query's hash-value. If the int-array varies then the IN-clause= =20 also differs, which might cause the planner to switch plan, and that might = be=20 a good thing. =2D-=20 Andreas Joseph Krogh Senior Software Developer / Manager =2D-----------------------+---------------------------------------------+ OfficeNet AS | The most difficult thing in the world is to | Karenslyst All=C3=A9 11 | know how to do a thing and to watch | PO. Box 529 Sk=C3=B8yen | somebody else doing it wrong, without | 0214 Oslo | comment. | NORWAY | | Tlf: +47 24 15 38 90 | | =46ax: +47 24 15 38 91 | | Mobile: +47 909 56 963 | | =2D-----------------------+---------------------------------------------+