Re: Planner performance extremely affected by an hanging transaction (20-30 times)?

Поиск
Список
Период
Сортировка
Искать
От
Josh Berkus
Тема
Re: Planner performance extremely affected by an hanging transaction (20-30 times)?
Дата
Msg-id
52431F18.9070102@agliodbs.com
Список
Дерево обсуждения
Planner performance extremely affected by an hanging transaction (20-30 times)? Bartłomiej Romański <br@sentia.pl>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Julian <tempura@internode.on.net>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Bartłomiej Romański <br@sentia.pl>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Jeff Janes <jeff.janes@gmail.com>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Kevin Grittner <kgrittn@ymail.com>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Tom Lane <tgl@sss.pgh.pa.us>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Jeff Janes <jeff.janes@gmail.com>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? jesper@krogh.cc
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? didier <did447@gmail.com>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Jeff Janes <jeff.janes@gmail.com>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Bartłomiej Romański <br@sentia.pl>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? didier <did447@gmail.com>
Re: Planner performance extremely affected by an hanging transaction (20-30 times)? Jesper Krogh <jesper@krogh.cc>
On 09/25/2013 12:06 AM, Jeff Janes wrote:
>> Why do we need a procarraylock for this?  Seems like the solution would
>> be not to take a lock at all; the information on transaction commit is
>> in the clog, after all.
>>
> 
> My understanding is that you are not allowed to check the clog until after
> you verify the transaction is no longer in progress, otherwise you open up
> race conditions.

In this particular case, I'd argue that we don't care about race
conditions -- it's a plan estimate.  We certainly care about them a lot
less than lock-blocks.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

В списке pgsql-performance по дате отправления
От: Josh Berkus
Дата:
От: Andres Freund
Дата:
FAQ