Skip site navigation (1) Skip section navigation (2)

Re: Indexes not used

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "D(dot) Duccini" <duccini(at)backpack(dot)com>
Cc: Pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Indexes not used
Date: 2001-03-15 21:04:26
Message-ID: 15386.984690266@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"D. Duccini" <duccini(at)backpack(dot)com> writes:
>> VACUUM ANALYZE

> i've done this as well, but it gives me no output other than "VACUUM"

That's what it's supposed to do.

> or does it work silently in the background?

If you want noise, try VACUUM VERBOSE ANALYZE.


Anyway: don't the EXPLAIN numbers change once you've done VACUUM
ANALYZE?  How many rows are there matching 'someuser', anyhow?

It might be useful to see the planner's statistics, too -- try

select attname,attdisbursion,s.*
from pg_statistic s, pg_attribute a, pg_class c
where starelid = c.oid and attrelid = c.oid and staattnum = attnum
and relname = 'FOO';

(substitute name of interesting table for FOO)

			regards, tom lane

In response to

Responses

pgsql-novice by date

Next:From: lee johnsonDate: 2001-03-15 22:46:13
Subject: Re: add primary key
Previous:From: D. DucciniDate: 2001-03-15 20:48:11
Subject: Re: Indexes not used

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group