Re: lsyscache: free IndexAmRoutine objects returned by GetIndexAmRoutineByAmId() - Mailing list pgsql-hackers

From Matthias van de Meent
Subject Re: lsyscache: free IndexAmRoutine objects returned by GetIndexAmRoutineByAmId()
Date
Msg-id CAEze2WiFDiHVDxdW9BC0siF7kEqdiz0vP6Cb8s3u0e30zK7r-g@mail.gmail.com
Whole thread Raw
In response to Re: lsyscache: free IndexAmRoutine objects returned by GetIndexAmRoutineByAmId()  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: lsyscache: free IndexAmRoutine objects returned by GetIndexAmRoutineByAmId()
Re: lsyscache: free IndexAmRoutine objects returned by GetIndexAmRoutineByAmId()
List pgsql-hackers
On Mon, 29 Dec 2025 at 20:01, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Matthias van de Meent <boekewurm+postgres@gmail.com> writes
>> Here's my patch that does this, pulled from [0]. It was originally
>> built to reduce the per-index catcache overhead; as using static const
>> pointers reduces the data allocated into the "index info" context by
>> 264 bytes.
>
> Cool, I forgot you'd already been poking at this.  The patch
> is kinda long, but not as bad as I feared, and it all looks
> quite mechanical.  It lacks documentation updates though.

Attached v2, in which I've updated the one place where I could find
IndexAmRoutine's allocation policy being described, and in which I've
also updated InitIndexAmRoutine with the suggested changes of your
other mail. Thanks!

Kind regards,

Matthias van de Meent
Databricks (https://www.databricks.com)

Attachment

pgsql-hackers by date:

Previous
From: Kirill Reshke
Date:
Subject: Re: [PATCH] Fix escaping for '\' and '"' in pageinspect for gist
Next
From: Ilia Evdokimov
Date:
Subject: Hash-based MCV matching for large IN-lists