Re: [PATCH] XLogReadRecord returns pointer to currently read page
От
Andrey Lepikhov
Тема
Re: [PATCH] XLogReadRecord returns pointer to currently read page
Дата
Msg-id
49518b48-2036-5e43-1818-0f594e375e76@postgrespro.ru
Ответ на
Re: [PATCH] XLogReadRecord returns pointer to currently read page (Michael Paquier)
Список
Дерево обсуждения
[PATCH] XLogReadRecord returns pointer to currently read page Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Michael Paquier <michael@paquier.xyz>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Heikki Linnakangas <hlinnaka@iki.fi>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Heikki Linnakangas <hlinnaka@iki.fi>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Michael Paquier <michael@paquier.xyz>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Michael Paquier <michael@paquier.xyz>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Michael Paquier <michael@paquier.xyz>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Michael Paquier <michael@paquier.xyz>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Re: [PATCH] XLogReadRecord returns pointer to currently read page Michael Paquier <michael@paquier.xyz>
On 16.11.2018 11:23, Michael Paquier wrote: > On Thu, Nov 15, 2018 at 06:12:38PM +0900, Kyotaro HORIGUCHI wrote: >> This patch eliminates unnecessary copying that was done for >> non-continued records. Now the return value of XLogReadRecord >> directly points into page buffer holded in XLogReaderStats. It is >> safe because no caller site uses the returned pointer beyond the >> replacement of buffer content at the next call to the same >> function. > > I was looking at this patch, and shouldn't we worry about compatibility > with plugins or utilities which look directly at what's in readRecordBuf > for the record contents? Let's not forget that the contents of > XLogReaderState are public. According to my experience, I clarify some comments to avoid this mistakes in the future (see attachment). -- Andrey Lepikhov Postgres Professional https://postgrespro.com The Russian Postgres Company
В списке pgsql-hackers по дате отправления
От: Haribabu Kommi
Дата: