Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
От
Robert Haas
Тема
Re: pgsql: Allow Pin/UnpinBuffer to operate in a
lockfree manner.
Дата
Msg-id
CA+TgmoZsjmn6xtFepN86bb8DcTzyARUT+T5wpYBpr-9rLdwvGg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. Andres Freund <andres@anarazel.de>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. Tom Lane <tgl@sss.pgh.pa.us>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a
lockfree manner. Andres Freund <andres@anarazel.de>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. Tom Lane <tgl@sss.pgh.pa.us>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a
lockfree manner. Andres Freund <andres@anarazel.de>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a
lockfree manner. Robert Haas <robertmhaas@gmail.com>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a
lockfree manner. Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a
lockfree manner. Andres Freund <andres@anarazel.de>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a
lockfree manner. Robert Haas <robertmhaas@gmail.com>
Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. Tom Lane <tgl@sss.pgh.pa.us>
On Sun, Apr 17, 2016 at 12:01 PM, Tom Lane wrote: > Andres Freund writes: >> Allow Pin/UnpinBuffer to operate in a lockfree manner. > > Now that I've had some occasion to look around in bufmgr.c, I am very > unhappy that there are still boatloads of comments talking about a buffer > header's spinlock, when there is in fact no spinlock anymore. Please > expend some effort on making this less confusing for the next hacker. > Maybe make those comments talk about a "lock bit" instead? I was actually going to complain about this, too. I noticed it over the weekend when noodling around with another patch. I'm not sure exactly how it should be revised, but I find the current state of things confusing. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-committers по дате отправления
От: Alexander Korotkov
Дата: