From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
---|---|
To: | Doug McNaught <doug(at)mcnaught(dot)org> |
Cc: | Tiago Wright <tiagowright(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Indexed views? |
Date: | 2004-09-08 01:51:30 |
Message-ID: | 20040908015130.GA7556@dcc.uchile.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Sep 07, 2004 at 07:58:56PM -0400, Doug McNaught wrote:
> Tiago Wright <tiagowright(at)gmail(dot)com> writes:
> > Yes, thanks Tom. This is precisely what I was missing. I searched the
> > archives for the reason why this is so, but I found only one message
> > mentioning the MVCC mechanism. Can you point me in the right
> > direction? I would like to understand the issue.
>
> > IMHO, a change in this area could deliver great performance improvements.
>
> Hard to say how it would work, but come up with a good design and
> quality patch and it'll probably go in. :)
Probably not. This has been discussed before; what's needed is that the
visibility information is stored also in the index. This is hard and
inefficient to do, because it requires updating the index at the same
time that the heap is updated. Which is a bad proposition as soon as
there is more than one index, and when there is a seqscan involved (i.e.
no index), because it means a lot of extra I/O.
A proposal that would be better received would be to implement "bitmap
scanning" of indexes, which could mean retrieving heap pages in order,
yielding much better performance.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
We take risks not to escape from life, but to prevent life escaping from us.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-09-08 02:12:17 | Re: Making AFTER triggers act properly in PL functions |
Previous Message | chr | 2004-09-08 00:40:07 | Re: Unknown Exception (chr@active.ch) |