Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock
Дата
Msg-id
201007181851.29264.andres@anarazel.de
Ответ на
Список
Дерево обсуждения
ALTER TABLE SET STATISTICS requires AccessExclusiveLock Peter Eisentraut <peter_e@gmx.net>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Alvaro Herrera <alvherre@commandprompt.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Alvaro Herrera <alvherre@commandprompt.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Bruce Momjian <bruce@momjian.us>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Peter Eisentraut <peter_e@gmx.net>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Bruce Momjian <bruce@momjian.us>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Josh Berkus <josh@agliodbs.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Peter Eisentraut <peter_e@gmx.net>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Andres Freund <andres@anarazel.de>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock Bruce Momjian <bruce@momjian.us>
On Sunday 18 July 2010 18:02:26 Simon Riggs wrote:
> On Sun, 2010-07-18 at 17:28 +0200, Andres Freund wrote:
> > Unfortunately the same issue exists with constraint exclusion - and we
> > can hardly disable that for serializable transactions...
> 
> Then I think the fix is to look at the xmin values on all of the tables
> used during planning and ensure that we only use constraint-based
> optimisations in a serializable transaction when our top xmin is later
> than the last DDL change (via its xmin).
Why not just use a the normal snapshot at that point? Any older constraints 
should be just as valid for the tuples visible for the to-be-planned query.
I also think that would lay groundwork for reducing lock-levels further in the 
future.

Andres

В списке pgsql-hackers по дате отправления
От: David E. Wheeler
Дата:
От: Tom Lane
Дата:
Сообщение: Re: Fix for libpq compile
FAQ