Re: [HACKERS] Patch to improve performance of replay of AccessExclusiveLock

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: [HACKERS] Patch to improve performance of replay of AccessExclusiveLock
Дата
Msg-id CANP8+j+_MMqpffRHqd1nf1Ppiap1eqMcVPP=mRiqQ_1FtCN24Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Patch to improve performance of replay of AccessExclusiveLock  (David Rowley <david.rowley@2ndquadrant.com>)
Ответы Re: [HACKERS] Patch to improve performance of replay of AccessExclusiveLock  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers
On 16 March 2017 at 09:52, David Rowley <david.rowley@2ndquadrant.com> wrote:

>> Seemed easier to write it than explain further. Please see what you think.
>
>
> Thanks. I had been looking for some struct to store the flag in. I'd not
> considered just adding a new global variable.

As Amit says, I don't see the gain from adding that to each xact state.

I'd suggest refactoring my patch so that the existign
MyXactAccessedTempRel becomes MyXactFlags and we can just set a flag
in the two cases (temp rels and has-aels). That way we still have one
Global but it doesn't get any uglier than it already is.

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [HACKERS] Patch to improve performance of replay of AccessExclusiveLock
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [HACKERS] Two phase commit in ECPG