Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN()

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN()
Дата
Msg-id
CAB7nPqRJtKO5NLZZis3xxzH05sdAodG39qFdLQRg371Pi94PzQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[HACKERS] [PATCH] Assert that the correct locks are held when calling PageGetLSN() Jacob Champion <pchampion@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Jacob Champion <pchampion@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Asim Praveen <apraveen@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Jacob Champion <pchampion@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Jacob Champion <pchampion@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Asim Praveen <apraveen@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Jacob Champion <pchampion@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Jacob Champion <pchampion@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held whencalling PageGetLSN() Jacob Champion <pchampion@pivotal.io>
Re: [HACKERS] [PATCH] Assert that the correct locks are held when calling PageGetLSN() Daniel Gustafsson <daniel@yesql.se>
On Mon, Oct 2, 2017 at 11:44 PM, Robert Haas  wrote:
> On Mon, Oct 2, 2017 at 10:19 AM, Michael Paquier
>  wrote:
>> So those bits could be considered for integration.
>
> Yes, and they also tend to suggest that the rest of the patch has value.

Well, there are cases where you don't need any locking checks, and the
proposed patch ignores that. Take for example pageinspect which works
on a copy of a page, or just WAL replay which serializes everything,
and in both cases PageGetLSN can be used safely. So for compatibility
reasons I think that PageGetLSN should be kept alone to not surprise
anybody using it, or at least an equivalent should be introduced. It
would be interesting to make BufferGetLSNAtomic hold tighter checks,
like something that makes use of LWLockHeldByMe for example.
-- 
Michael


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Joshua D. Drake
Дата:
Сообщение: Re: [HACKERS] 64-bit queryId?
От: Nico Williams
Дата:
FAQ