Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 66B2AB5DC09 for ; Tue, 20 Sep 2011 23:38:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 34018-03 for ; Wed, 21 Sep 2011 02:38:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by mail.postgresql.org (Postfix) with ESMTP id 5A2F5B5DBC4 for ; Tue, 20 Sep 2011 23:38:30 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id C9AA6229C0; Tue, 20 Sep 2011 22:38:30 -0400 (EDT) Date: Tue, 20 Sep 2011 22:38:30 -0400 From: Stephen Frost To: Tom Lane Cc: Andy Lester , Craig Ringer , Royce Ausburn , pgsql-performance Subject: Re: Prepared statements and suboptimal plans Message-ID: <20110921023830.GW12765@tamriel.snowman.net> References: <4E792417.5080205@ringerc.id.au> <9289.1316565395@sss.pgh.pa.us> <7B0A863F-F304-4057-807B-9B2E6137E107@petdance.com> <10687.1316566832@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uUCcNMVQw38YqIF/" Content-Disposition: inline In-Reply-To: <10687.1316566832@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.32-5-amd64 (x86_64) X-Uptime: 22:36:48 up 230 days, 11:06, 13 users, load average: 0.00, 0.02, 0.00 User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/301 X-Sequence-Number: 45077 --uUCcNMVQw38YqIF/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tom, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > really pretty simple: decide whether to use a custom (parameter-aware) > plan or a generic (not-parameter-aware) plan. =20 Before I go digging into this, I was wondering, is this going to address our current problem of not being able to use prepared queries and constraint exclusion..? Thanks, Stephen --uUCcNMVQw38YqIF/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk55TiYACgkQrzgMPqB3kignkwCePXEpCYsPbWRKKf5bD3tloBpa lDwAn3jLX3Vr8cv797++5DAa5g4AWhEV =3QUb -----END PGP SIGNATURE----- --uUCcNMVQw38YqIF/--