Re: again on index usage (7.1.3)

From: Daniel Kalchev <daniel(at)digsys(dot)bg>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: again on index usage (7.1.3)
Date: 2002-02-12 16:36:55
Message-ID: 200202121636.SAA01108@dcave.digsys.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>>Stephan Szabo said:
>
> Let's start with the standard set of things. Have you vacuum analyzed,
> what does explain show for the query, is there one value that is more
> common than all others?
>

My most recent 'standard' answer these days is "it worked well before VACUUM
ANALYZE" :-)

RADIUS=# explain
select * from attrib where user_name = 'Paacons'RADIUS-# ;
NOTICE: QUERY PLAN:

Seq Scan on attrib (cost=0.00..16978.46 rows=17922 width=48)

EXPLAIN

is what explain says by default.

RADIUS=# set enable_seqscan='off';
SET VARIABLE

RADIUS=# explain
select * from attrib where user_name = 'Paacons';
NOTICE: QUERY PLAN:

Index Scan using uattr on attrib (cost=0.00..32861.00 rows=17922 width=48)

EXPLAIN

Daniel

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2002-02-12 16:40:02 Re: again on index usage (7.1.3)
Previous Message Zeugswetter Andreas SB SD 2002-02-12 16:28:06 Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu