Re: Strange indexing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Uros Gruber <uros(at)sir-mag(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Strange indexing
Date: 2002-04-29 17:12:13
Message-ID: 29802.1020100333@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Uros Gruber <uros(at)sir-mag(dot)com> writes:
> explain select * from test where parent = '1';
> Seq Scan on test (cost=0.00..1.07 rows=1 width=17)

> Why i there no index scan if i create index. I also run
> vacuum on this table.

After the vacuum, the planner knows that your table is too small to
bother with an indexscan. Try putting in a more realistic amount of
data.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hubert depesz Lubaczewski 2002-04-29 18:18:17 one more time: feature (feature status) request - function overriding table permissions
Previous Message Uros Gruber 2002-04-29 17:09:47 I don't understand this