Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A39626345F3 for ; Wed, 15 Apr 2009 10:21:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 38570-10 for ; Wed, 15 Apr 2009 10:21:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 9EE34633C77 for ; Wed, 15 Apr 2009 10:11:54 -0300 (ADT) Received: from 219-89-243-186.adsl.xtra.co.nz ([219.89.243.186] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Lu4tr-0004EN-Kk; Thu, 16 Apr 2009 01:11:35 +1200 Message-ID: <49E5DD02.2060909@opencloud.com> Date: Thu, 16 Apr 2009 01:11:30 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Heikki Linnakangas CC: John Lister , Tom Lane , pgsql-jdbc@postgresql.org Subject: Re: Query preparation References: <49E4A6FA.7050407@kickstone.com> <49E4AEAC.5000700@opencloud.com> <49E4F20C.6040900@kickstone.com> <18961.1239742344@sss.pgh.pa.us> <49E4FBB0.40405@kickstone.com> <49E5D64F.8010603@enterprisedb.com> In-Reply-To: <49E5D64F.8010603@enterprisedb.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/59 X-Sequence-Number: 19506 Heikki Linnakangas wrote: > Does anyone see a problem with caching the result set descriptor > (RowDescription)? AFAICS it should never change after a statement is > prepared. If not, I'll polish up and submit the patch. If you tie it to the existing named statement mechanisms I think that works. We invalidate the named statement anyway if the parameter types change, and you want to invalidate any cached row description at the same time. Schema changes could bite you, but I think they bite named statements in other ways anyway. (Not sure how far the server-side efforts to do plan invalidation progressed) -O