Re: Query with multiples operators BETWEEN

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Renaud Tthonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr>
Cc: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Query with multiples operators BETWEEN
Date: 2001-02-23 04:54:22
Message-ID: 27174.982904062@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Renaud Tthonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr> writes:
> Nested Loop (cost=0.00..56.67 rows=3 width=20)
> -> Seq Scan on observation o (cost=0.00..30.00 rows=1 width=4)
> -> Seq Scan on exposure_epic e (cost=0.00..22.50 rows=333 width=16)

Do a VACUUM ANALYZE, for starters. These results look like the planner
is working with the initial default estimates for a never-vacuumed table.

> I haven't create any index

Indexes might be a good idea too.
http://www.postgresql.org/devel-corner/docs/postgres/indices.html
has a good intro to the basics.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Humphries 2001-02-23 09:08:56 Re: is this expected or am i on crack?
Previous Message Bruce Momjian 2001-02-23 04:04:23 Re: [HACKERS] Re: [INTERFACES] Re: Chinese patch for Pgaccess