pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow table AM's to use rd_amcache, too.
Date: Tue, 30 Jul 2019 19:19:16 +0000
Message-ID: <E1hsXeW-0005Tv-JH@gemulon.postgresql.org> (raw)

Allow table AM's to use rd_amcache, too.

The rd_amcache allows an index AM to cache arbitrary information in a
relcache entry. This commit moves the cleanup of rd_amcache so that it
can also be used by table AMs. Nothing takes advantage of that yet, but
I'm sure it'll come handy for anyone writing new table AMs.

Backpatch to v12, where table AM interface was introduced.

Reviewed-by: Julien Rouhaud

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/394f7500ae8f4afc158273d642f5ce87af3a7309

Modified Files
--------------
src/backend/utils/cache/relcache.c | 11 +++++++++--
src/include/utils/rel.h            | 19 +++++++++++--------
2 files changed, 20 insertions(+), 10 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1hsXeW-0005Tv-JH@gemulon.postgresql.org>
Permalink:  ../E1hsXeW-0005Tv-JH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hsXeW-0005Tv-JH@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Allow table AM's to use rd_amcache, too.
  In-Reply-To: <E1hsXeW-0005Tv-JH@gemulon.postgresql.org>
  References: <E1hsXeW-0005Tv-JH@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