Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EAF766332AE for ; Tue, 6 Jul 2010 17:26:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 84434-04 for ; Tue, 6 Jul 2010 20:26:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by mail.postgresql.org (Postfix) with ESMTP id B2834632FD8 for ; Tue, 6 Jul 2010 17:26:25 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id CE6E2221BA; Tue, 6 Jul 2010 16:26:23 -0400 (EDT) Date: Tue, 6 Jul 2010 16:26:23 -0400 From: Stephen Frost To: Ranga Gopalan Cc: pgsql-performance@postgresql.org Subject: Re: Question about partitioned query behavior Message-ID: <20100706202623.GM21875@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Tz2v/xvbm3T/MeTx" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.26-1-amd64 (x86_64) X-Uptime: 16:25:14 up 313 days, 7:50, 36 users, load average: 0.24, 0.15, 0.10 User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/68 X-Sequence-Number: 39457 --Tz2v/xvbm3T/MeTx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ranga, * Ranga Gopalan (ranga_gopalan@hotmail.com) wrote: > It seems that this is an issue faced by others as well - Please see this = link: http://stackoverflow.com/questions/2236776/efficient-querying-of-mult= i-partition-postgres-table >=20 > Is this a known bug? Is this something that someone is working on or is t= here a known work around? Actually, if you look at that, the problem the original poster had was that they didn't have constraint_exclusion turned on. Then they were complaining about having the (empty) master table and the needed partition included (which, really, shouldn't be that big a deal). Did you look at what the other reply suggested? Do you have constraint_exclusion =3D 'on' in your postgresql.conf? Thanks, Stephen --Tz2v/xvbm3T/MeTx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkwzkW8ACgkQrzgMPqB3kii8GACeNHTVHZke6hPvaEiZSdvs5+6f 2NUAnAgJJE1koJHofsYx/X9LHN6SiFa/ =VFPz -----END PGP SIGNATURE----- --Tz2v/xvbm3T/MeTx--