RE: Re: Strangeness in xid allocation / snapshot setup

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: Re: Strangeness in xid allocation / snapshot setup
Дата
Msg-id 3705826352029646A3E91C53F7189E320166CA@sectorbase2.sectorbase.com
обсуждение исходный текст
Ответ на Strangeness in xid allocation / snapshot setup  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > Isn't spinlock just a few ASM instructions?... on most platforms...
> 
> If we change over to something that supports read vs write locking,
> it's probably going to be rather more than that ... right now, I'm
> pretty dissatisfied with the performance of our spinlocks under load.

We shouldn't use light locks everywhere. Updating/reading MyProc.xid
is very good place to use simple spinlocks... or even better mutexes.

Vadim


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

Предыдущее
От: "P. Dwayne Miller"
Дата:
Сообщение: select count...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: Strangeness in xid allocation / snapshot setup