]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Allow table AM's to use rd_amcache, too.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jul 2019 18:43:27 +0000 (21:43 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jul 2019 18:43:58 +0000 (21:43 +0300)
commit394f7500ae8f4afc158273d642f5ce87af3a7309
treef033ef48798b6ebb2caf44e39b7fee74f85d37d7
parent718e313244a9376d823b5efe421eb079474a6b20
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
src/backend/utils/cache/relcache.c
src/include/utils/rel.h