pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: psql-mail@freeuk.com
Cc: pgsql-general@postgresql.org
Subject: Re: Query Optimisation
Date: Tue, 15 Jul 2003 12:35:56 -0400
Message-ID: <23272.1058286956@sss.pgh.pa.us> (raw)
In-Reply-To: <E19cSDD-000Euo-00@buckaroo.freeuk.net>
References: <E19cSDD-000Euo-00@buckaroo.freeuk.net>

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



view thread (4+ messages)

Message-ID: <23272.1058286956@sss.pgh.pa.us>
Permalink:  ../23272.1058286956@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23272.1058286956@sss.pgh.pa.us

 · 

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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, psql-mail@freeuk.com, pgsql-general@postgresql.org
  Subject: Re: Query Optimisation
  In-Reply-To: <23272.1058286956@sss.pgh.pa.us>
  References: <E19cSDD-000Euo-00@buckaroo.freeuk.net> <23272.1058286956@sss.pgh.pa.us>

* 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