Re: [HACKERS] psql nested queries with 2000+ records - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] psql nested queries with 2000+ records
Date
Msg-id 199803220530.AAA06251@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] psql nested queries with 2000+ records  (Coronach <coronach@hill-b-073.resnet.purdue.edu>)
List pgsql-hackers
> amusements=> explain select * from games where mfr = '';
> NOTICE:  QUERY PLAN:
>
> Seq Scan on games  (cost=0.00 size=0 width=160)
>
> EXPLAIN

OK. This is the base of the problem.  You are vacuum.  How varied is the
data in the mfr field.  Is the usually just a few unique values.  If so,
the index really does you no good, and perhaps that is why it is not
being used.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [QUESTIONS] How do I build libpgtcl?
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Re: sched_yield()