Re: Orphan page in _bt_split - Mailing list pgsql-hackers

From Konstantin Knizhnik
Subject Re: Orphan page in _bt_split
Date
Msg-id 273d89f1-d2d6-4732-ad11-b1379a49680f@garret.ru
Whole thread Raw
In response to Re: Orphan page in _bt_split  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-hackers


On 13/09/2025 10:10 PM, Peter Geoghegan wrote:
On Wed, Sep 3, 2025 at 2:25 AM Konstantin Knizhnik <knizhnik@garret.ru> wrote:
Do you suggest to replace `PageGetTempPage` with using local buffers?
Or may be change `PageGetTempPage*` to accept parameter with provided
local buffer?
I think that _bt_split could easily be switched over to using 2 local
PGAlignedBlock variables, removing its use of PageGetTempPage. I don't
think that it is necessary to consider other PageGetTempPage callers.


Attached please find updated version of the patch which uses PGAlignedBlock instead of PageGetTempPage.  

Attachment

pgsql-hackers by date:

Previous
From: Nikolay Shaplov
Date:
Subject: Re: [PATCH] ternary reloption type
Next
From: "Jonathan S. Katz"
Date:
Subject: Re: PostgreSQL 18 GA press release draft