Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EA1F71337B68 for ; Tue, 15 Feb 2011 15:52:29 -0400 (AST) 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 62390-01 for ; Tue, 15 Feb 2011 19:52:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 73E0A1337B58 for ; Tue, 15 Feb 2011 15:52:21 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p1FJqIQM002840; Tue, 15 Feb 2011 14:52:18 -0500 (EST) To: "Nick Baryshnikov" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5887: EXPLAIN returns more than 1000 rows when table is empty In-reply-to: <201102151722.p1FHMVuc035497@wwwmaster.postgresql.org> References: <201102151722.p1FHMVuc035497@wwwmaster.postgresql.org> Comments: In-reply-to "Nick Baryshnikov" message dated "Tue, 15 Feb 2011 17:22:31 +0000" Date: Tue, 15 Feb 2011 14:52:17 -0500 Message-ID: <2839.1297799537@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.361 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FSL_RU_URL=2.271, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/137 X-Sequence-Number: 29409 "Nick Baryshnikov" writes: > Description: EXPLAIN returns more than 1000 rows when table is empty This is not a bug; it's intentional behavior. As long as the recorded size of the table is zero, the planner assumes that information is probably obsolete. regards, tom lane