pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guido Barosio <gbarosio@sinectis.com.ar>
To: pgsql-admin@postgresql.org
Subject: Strange scenary.
Date: Sat, 3 Jul 2004 18:18:56 -0300
Message-ID: <20040703181856.3c861bb4.gbarosio@sinectis.com.ar> (raw)

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
-------------------------------------------




view thread (2+ messages)  latest in thread

Message-ID: <20040703181856.3c861bb4.gbarosio@sinectis.com.ar>
Permalink:  ../20040703181856.3c861bb4.gbarosio@sinectis.com.ar/
Also on:    postgresql.org/message-id/20040703181856.3c861bb4.gbarosio@sinectis.com.ar

 · 

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-admin@postgresql.org
  Cc: gbarosio@sinectis.com.ar
  Subject: Re: Strange scenary.
  In-Reply-To: <20040703181856.3c861bb4.gbarosio@sinectis.com.ar>
  References: <20040703181856.3c861bb4.gbarosio@sinectis.com.ar>

* 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