Re: Indexed views?

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Indexed views?
Дата
Msg-id 87sm9teim7.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Re: Indexed views?  (Tiago Wright <tiagowright@gmail.com>)
Ответы Re: Indexed views?  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: Indexed views?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Indexed views?  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Tiago Wright <tiagowright@gmail.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.

Short answer: MVCC tuple visibility status isn't (and can't be) stored
in the index.  So the backend has to visit the actual tuple to see if
it is visible to the transaction that is currently running.

> 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.  :)

-Doug
-- 
Let us cross over the river, and rest under the shade of the trees.  --T. J. Jackson, 1863


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Making AFTER triggers act properly in PL functions
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Indexed views?