From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Bruce Momjian <bruce(at)momjian(dot)us> |
Subject: | Re: Another idea for index-only scans |
Date: | 2007-08-15 18:43:23 |
Message-ID: | 200708151143.23960.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bruce,
> I have added another idea for index-only scans to the TODO list:
> > A third idea would be for a heap scan to check if all rows are
> > visible and if so set a per-table flag which can be checked by index
> > scans. Any change to the table would have to clear the flag. To
> > detect changes during the heap scan a counter could be set at the
> > start and checked at the end --- if it is the same, the table has not
> > been modified --- any table change would increment the counter.
Seems marginal at best. Checking overlap between the index and the FSM/DSM
and only check dirty pages seems more intelligent, and able to cover a
larger number of cases.
--
--Josh
Josh Berkus
PostgreSQL @ Sun
San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2007-08-15 18:45:17 | Re: change name of redirect_stderr? |
Previous Message | Tom Lane | 2007-08-15 17:54:58 | Re: XID wraparound and busy databases |