Re: SSI atomic commit
От | Tom Lane |
---|---|
Тема | Re: SSI atomic commit |
Дата | |
Msg-id | 23263.1309894243@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: SSI atomic commit (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: SSI atomic commit
|
Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes: > On Tue, Jul 5, 2011 at 2:35 PM, Kevin Grittner > <Kevin.Grittner@wicourts.gov> wrote: >> That's easily done if we don't mind taking out a ProcArrayLock >> during completion of a transaction which has no XID, if only long >> enough to increment a uint64 in shared memory, and then stash the >> value -- somewhere -- so that SSI code can find and use it. > That sure sounds scary from a scalability perspective. If we can > piggyback on an existing ProcArrayLock acquisition, fine, but > additional ProcArrayLock acquisitions when SSI isn't even being used > sound like a real bad idea to me. Isn't SSI *already* forcing a new acquisition of an LWLock during commits of read-only transactions that aren't using SSI? Perhaps there's a bit less contention on SerializableXactHashLock than on ProcArrayLock, but it's not obvious that the current situation is a lot better than this would be. regards, tom lane
В списке pgsql-hackers по дате отправления: