Re: MVCC catalog access

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: MVCC catalog access
Дата
Msg-id CA+TgmoaUJY7LoRdBzFSK_1HUrSx-TAS9qB12vbRq3D0-CtcuNw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: MVCC catalog access  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: MVCC catalog access  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
On Thu, Jun 20, 2013 at 10:35 AM, Andres Freund <andres@2ndquadrant.com> wrote:
>> But I'm still on the fence about whether this is really a valid test.
>
> I think it shows that we need to be careful and do further performance
> evaluations and/or alleviate the pain by making things cheaper (say, a
> "ddl counter" in shared mem, allowing to cache snapshots for the
> syscache). If that artificial test hadn't shown problems I'd have voted
> for just going ahead and not worry further.

I tried a general snapshot counter that rolls over every time any
transaction commits, but that doesn't help much.  It's a small
improvement on general workloads, but it's not effective against this
kind of hammering.  A DDL counter would be a bit more expensive
because we'd have to insert an additional branch into
GetSnapshotData() while ProcArrayLock is held, but it might be
tolerable.  Do you have code for this (or some portion of it) already?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: dump difference between 9.3 and master after upgrade
Следующее
От: Markus Wanner
Дата:
Сообщение: Re: dynamic background workers