X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 98937D1B3A8 for ; Sat, 3 Jul 2004 18:18:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87373-03 for ; Sat, 3 Jul 2004 21:18:31 +0000 (GMT) Received: from mail.sinectis.com.ar (odin.sinectis.com.ar [216.244.192.158]) by svr1.postgresql.org (Postfix) with ESMTP id EC504D1B18E for ; Sat, 3 Jul 2004 18:18:27 -0300 (ADT) Received: from spinalweb (mail.dtnet.com.ar [200.0.213.22]) (authenticated for gbarosio@sinectis.com.ar) by mail.sinectis.com.ar with ESMTP id i63LIMt02421 for ; Sat, 3 Jul 2004 18:18:23 -0300 X-Originally_To: Date: Sat, 3 Jul 2004 18:18:56 -0300 From: Guido Barosio To: pgsql-admin@postgresql.org Subject: Strange scenary. Message-Id: <20040703181856.3c861bb4.gbarosio@sinectis.com.ar> Organization: SpinalWeb X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/102 X-Sequence-Number: 14170 Hi, This is the problem. I create a database from cero. I create a empty table, name students. I ask for an EXPLAIN on this new table, and the output of the query analyzer tells me that this table is filled with 1000 rows. So...why is that? This were the steps. -bash-2.05b$ dropdb scopes DROP DATABASE -bash-2.05b$ createdb scopes CREATE DATABASE -bash-2.05b$ psql scopes Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit scopes=# create table students (id smallint, name text); CREATE scopes=# explain select * from students ; NOTICE: QUERY PLAN: Seq Scan on students (cost=0.00..20.00 rows=1000 width=34) EXPLAIN scopes=# select * from students ; id | name ----+------ (0 rows) scopes=# VACUUM students ; VACUUM scopes=# explain select * from students ; NOTICE: QUERY PLAN: Seq Scan on students (cost=0.00..0.00 rows=1 width=34) EXPLAIN scopes=# Anyone can tell me why this is going on? I mean..as I see this is not true. -- ------------------------------------------- Guido Barosio Buenos Aires, Argentina -------------------------------------------