Re: BUG #5113: Postgres not scanning indexes

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: dan(dot)boeriu(at)roost(dot)com ("dan"), pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5113: Postgres not scanning indexes
Date: 2009-10-13 23:50:11
Message-ID: 87hbu2zwek.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>>>>> "dan" == "dan" <dan(dot)boeriu(at)roost(dot)com> writes:

dan> I expect the explain to say index scan; instead it says table scan.
dan> The index has ALL the info I need

It may have all the info _you_ need, but what it doesn't have is all the
info that _postgres_ needs; specifically it doesn't contain enough row
visibility info for index-only scans to be possible without consulting
the table.

--
Andrew (irc:RhodiumToad)

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Sean Hsien 2009-10-14 02:15:13 issue with integer nullable column and value 0
Previous Message Stephan Szabo 2009-10-13 23:49:54 Re: BUG #5113: Postgres not scanning indexes