Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a9pBM-0002QG-TL for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Dec 2015 07:10:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a9pBM-0002On-G8 for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Dec 2015 07:10:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a9pAj-0001el-OM for pgsql-bugs@postgresql.org; Fri, 18 Dec 2015 07:09:49 +0000 Received: from ns1.hjp.at ([212.17.106.132] helo=zeno.hjp.at) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a9pAe-0007Co-Rv for pgsql-bugs@postgresql.org; Fri, 18 Dec 2015 07:09:48 +0000 Received: by zeno.hjp.at (Postfix, from userid 1000) id 1AB59404D; Fri, 18 Dec 2015 08:09:41 +0100 (CET) Date: Fri, 18 Dec 2015 08:09:40 +0100 From: "Peter J. Holzer" To: sienkomarcin@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13817: Query planner strange choose while select/count small part of big table - complete Message-ID: <20151218070940.GC362@hjp.at> References: <20151214114527.11345.70373@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sgneBHv3152wZ8jf" Content-Disposition: inline In-Reply-To: <20151214114527.11345.70373@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --sgneBHv3152wZ8jf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2015-12-14 11:45:27 +0000, sienkomarcin@gmail.com wrote: > The following bug has been logged on the website: >=20 > Bug reference: 13817 > Logged by: Marcin_S > Email address: sienkomarcin@gmail.com > PostgreSQL version: 9.4.5 > Operating system: Windows 7 x64 > Description: =20 >=20 > Hi, >=20 > First sorry for not completed last bug (browser handle it too fast :). He= re > is complete version: >=20 >=20 > I've check todo list but i can't find exact problem i'm reporting. It see= ms > like query planner fires not needed sequence scan by all rows in table wh= en > only a few rows were picked. Can you try this with version 9.5 (currently in beta)? This looks very similar to a problem I reported some time ago and which is fixed in 9.5. hp --=20 _ | Peter J. Holzer | I want to forget all about both belts and |_|_) | | suspenders; instead, I want to buy pants=20 | | | hjp@hjp.at | that actually fit. __/ | http://www.hjp.at/ | -- http://noncombatant.org/ --sgneBHv3152wZ8jf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUBVnOxM/IOSFES/ihdAQKGqBAAgArHwJm8CrrTzO7bNNqyRY0cKseOcrJD WSwMs01gQ4Pxt5GKvxWgBMZ+jx/ia2p04cDCcxDcPDsdFp1gnnXh0iFzelWk0bu5 zyZxf9UQUEDCiPldSAtuD4uyhFr+8IPjKb99JfxDlSVw5gkiByC2LeHtdcnapV+d b6miYktp8u9feC+AFwmV0K7Dmx+e36S7QfG72SYIlYez6+KRGQPn4US069w7QtXH L1OIpbSi6vrOhSqvD/ZceXCoJ+zih9Z544Az+cftCIfOq4WkhUOZ7wpg4LE769ST RzEqJxHm9PxJeyJVfQ00f5QvZevUkpIE5TvMI10I8Y41enqmyGXaWSChpwEeVH/A 1+45lNTBLQaD0usNkTlmsr47J7cm6CwgvXotB1jNtU5K9SG5KYbl56JD360fNPzj Wo9bp5xyYLLEzg6QQDOifL0d2NZQTS6on5iioZK0wJhK+OoCqdVicyd2TU42U8tX myYXDUOLNlwiPZBlHfPetsOqsrUqgcDai3q3d7nSxMyjGS8ul3sv7cE3ui295Jo4 SuznFo3PFbxJDXj/HlYgexYIIOiWXx+ngwnbxPHjuUhIzwrBVjdox3/VY4I7QGl5 7jWKZfm87xRDYXz16f/Ds18iwcaxkTAQMC1jjSCpDcwk94Wtp6dCOcXOPE0LoP3F eppcVn2SR/k= =VsaW -----END PGP SIGNATURE----- --sgneBHv3152wZ8jf--