Re: Query with multiples operators BETWEEN - Mailing list pgsql-general

From Tom Lane
Subject Re: Query with multiples operators BETWEEN
Date
Msg-id 27174.982904062@sss.pgh.pa.us
Whole thread Raw
In response to Re: Query with multiples operators BETWEEN  (Renaud Tthonnart <thonnart@amwdb.u-strasbg.fr>)
List pgsql-general
Renaud Tthonnart <thonnart@amwdb.u-strasbg.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

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: [INTERFACES] Re: Chinese patch for Pgaccess
Next
From: Boszormenyi Zoltan
Date:
Subject: Re: how critical is WAL