Re: Indexed views?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 02:36:43
Message-ID: 14589.1094611003@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Doug McNaught <doug(at)mcnaught(dot)org> writes:
> Short answer: MVCC tuple visibility status isn't (and can't be) stored
> in the index.

Well, in principle it *could* be, but there are strong arguments why it
shouldn't be: the costs of updating N index entries instead of just one
tuple entry, the potential reliability hit (what happens when the index
entries disagree with the master?), and the increase in index size
(adding an extra dozen bytes to an index entry is a very nontrivial
I/O hit).

I don't say we wouldn't ever do it, but it will take a lot more than
newbies opining that it might be a good idea to persuade us that it
is a good idea.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2004-09-08 02:52:01 Re: Indexed views?
Previous Message Doug McNaught 2004-09-08 02:21:22 Re: Indexed views?