Re: index-only scans
| От | Robert Haas |
|---|---|
| Тема | Re: index-only scans |
| Дата | |
| Msg-id | CA+TgmoZo0ZSFvDw1NSxYo+61rWVAV7JwgWS6A2TbJf3Nt9XkPg@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: index-only scans (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>) |
| Список | pgsql-hackers |
On Fri, Aug 12, 2011 at 4:03 PM, Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> wrote: > On 11.08.2011 23:06, Robert Haas wrote: >> >> Comments, testing, review appreciated... > > I would've expected this to use an index-only scan: > > postgres=# CREATE TABLE foo AS SELECT generate_series(1,100000) AS id; Ugh. I think there's something wrong with this test: + if (index->amcanreturn && !index->predOK && !index->indexprs) I think that should probably say something like (ind->indpred == NIL || ind->predOK). -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: