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-0005Tu-JJ@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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a29834beb1deeb0aa06742dd77ba1d21b444ca44

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