Re: Visibility Groups

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Visibility Groups
Дата
Msg-id 20080807142025.GA4171@alvh.no-ip.org
обсуждение исходный текст
Ответ на Visibility Groups  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Visibility Groups  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs wrote:
> 
> Currently, we calculate a single OldestXmin across all snapshots on the
> assumption that any transaction might access any table.
> 
> I propose creating "Visibility Groups" that *explicitly* limit the
> ability of a transaction to access data outside its visibility group(s).
> By default, visibility_groups would be NULL, implying potential access
> to all tables.

I think this is a cumbersome thing to use.  We can do better -- right
now we keep closer track of open snapshots, which means that if there is
a long running transaction that refreshes its snapshots periodically,
vacuum doesn't need to keep all the dead rows that it can no longer see.  

We can improve vacuum to be able to remove a lot more dead rows than we
do currently.  This is invisible to the user, which IMHO is a better
user interface than what you are proposing.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Visibility Groups
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Avoiding Application Re-test