pgsql: Allow table AM's to use rd_amcache, too. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Allow table AM's to use rd_amcache, too.
Date
Msg-id E1hsXeW-0005Tv-JH@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Print WAL position correctly in pg_rewind error message.
Next
From: Michael Paquier
Date:
Subject: pgsql: Remove orphaned structure member in pgcrypto