Re: Query Optimisation - Mailing list pgsql-general

From Tom Lane
Subject Re: Query Optimisation
Date
Msg-id 23272.1058286956@sss.pgh.pa.us
Whole thread Raw
In response to Query Optimisation  (psql-mail@freeuk.com)
List pgsql-general
psql-mail@freeuk.com writes:
> ->  Seq Scan on message  (cost=0.00..25.00 rows=5 width=8) (actual time=
> 58.18..410588.49 rows=20839 loops=1)
> Filter: ((header || body) ~~* '%chicken%'::text)

Estimated cost of a seqscan only 25?  Have you ever vacuumed or analyzed
that table?  The planner evidently thinks it is tiny ...

            regards, tom lane

pgsql-general by date:

Previous
From: "David Olbersen"
Date:
Subject: Re: Reverse compatibility
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] INSTEAD rule bug?