Re: Indices get ignored in large tables - Mailing list pgsql-bugs

From Stephan Szabo
Subject Re: Indices get ignored in large tables
Date
Msg-id Pine.BSF.4.21.0108291128180.48187-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Indices get ignored in large tables  (Apua Paquola <apua@iq.usp.br>)
List pgsql-bugs
You probably need to run vacuum analyze after filling in the data.
Otherwise it's using bogus selectivity (see the number of expected
rows returned by the explain output, it's expecting 6000 rows after
the create index, which is large enough to make it guess that
it'll be cheaper to sequence scan the table.

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Odp: PD: triggered data change violation on relation "tbl_b"
Next
From: Stephan Szabo
Date:
Subject: Re: postmaster quits