pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow table AM to store complex data structures in rd_amcache
Date: Thu, 21 Mar 2024 21:01:18 +0000
Message-ID: <E1rnPXK-004zQS-EL@gemulon.postgresql.org> (raw)

Allow table AM to store complex data structures in rd_amcache

The new table AM method free_rd_amcache is responsible for freeing all the
memory related to rd_amcache and setting free_rd_amcache to NULL.  If the new
method is not specified, we still assume rd_amcache to be a single chunk of
memory, which could be just pfree'd.

Discussion: https://postgr.es/m/CAPpHfdurb9ycV8udYqM%3Do0sPS66PJ4RCBM1g-bBpvzUfogY0EA%40mail.gmail.com
Reviewed-by: Matthias van de Meent, Mark Dilger, Pavel Borisov
Reviewed-by: Nikita Malakhov, Japin Li

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/02eb07ea89d27f1d05a5055bf779042d2953b4e7

Modified Files
--------------
src/backend/access/heap/heapam_handler.c |  1 +
src/backend/utils/cache/relcache.c       | 11 +++--------
src/include/access/tableam.h             | 34 ++++++++++++++++++++++++++++++++
src/include/utils/rel.h                  | 10 ++++++----
4 files changed, 44 insertions(+), 12 deletions(-)



Message-ID: <E1rnPXK-004zQS-EL@gemulon.postgresql.org>
Permalink:  ../E1rnPXK-004zQS-EL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rnPXK-004zQS-EL@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Allow table AM to store complex data structures in rd_amcache
  In-Reply-To: <E1rnPXK-004zQS-EL@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox