Re: Orphan page in _bt_split

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Orphan page in _bt_split
Дата
Msg-id aNTlAbS0By8kTcKJ@paquier.xyz
обсуждение исходный текст
Ответ на Re: Orphan page in _bt_split  (Konstantin Knizhnik <knizhnik@garret.ru>)
Ответы Re: Orphan page in _bt_split
Список pgsql-hackers
On Thu, Sep 25, 2025 at 09:41:00AM +0300, Konstantin Knizhnik wrote:
> Sorry, I have attached wrong patch.

Thanks, I was confused for a couple of minutes.

+    /*
+     * Now we are in critical section and it is not needed to maintain temporary
+     * copy of right page in the local memory. We can copy it to the destination buffer.
+     * Unlike leftpage, rightpage and ropaque are still needed to complete update
+     * of the page, so we need to correctly reinitialize them.
+     */
+    rightpage = BufferGetPage(rbuf);
+    memcpy(rightpage, rightpage_buf.data, BLCKSZ);
+    ropaque = BTPageGetOpaque(rightpage);

Hmm.  This looks kind of explicit enough to document the purpose.
The wording could be simplified a bit more.  I'll take it from there.
--
Michael

Вложения

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