pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Baryshnikov <Warstone@list.ru>
To: pgsql-bugs@postgresql.org
Subject: BUG #5887: EXPLAIN returns more than 1000 rows when table is empty
Date: Tue, 15 Feb 2011 17:22:31 GMT
Message-ID: <201102151722.p1FHMVuc035497@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      5887
Logged by:          Nick Baryshnikov
Email address:      Warstone@list.ru
PostgreSQL version: 8.4.7
Operating system:   Ubuntu 10.10
Description:        EXPLAIN returns more than 1000 rows when table is empty
Details: 

CREATE TABLE test (
	id bigserial NOT NULL PRIMARY KEY
);
VACUUM FULL ANALYZE test;
EXPLAIN ANALYZE SELECT * FROM test;
INSERT INTO test VALUES (DEFAULT);
VACUUM FULL ANALYZE test;
EXPLAIN ANALYZE SELECT * FROM test;

1-st EXPLAIN give me:
"Seq Scan on test  (cost=0.00..31.40 rows=2140 width=8) (actual
time=0.003..0.003 rows=0 loops=1)"
"Total runtime: 0.040 ms"

2-nd:
"Seq Scan on test  (cost=0.00..1.01 rows=1 width=8) (actual
time=0.004..0.005 rows=1 loops=1)"
"Total runtime: 0.025 ms"

VACUUM FULL ANALYZE didn't works when there is 0 records in the table?



view thread (3+ messages)  latest in thread

Message-ID: <201102151722.p1FHMVuc035497@wwwmaster.postgresql.org>
Permalink:  ../201102151722.p1FHMVuc035497@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201102151722.p1FHMVuc035497@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Warstone@list.ru
  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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox