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:27 +0000 (21:43 +0300)
commita29834beb1deeb0aa06742dd77ba1d21b444ca44
tree300f07ccfaed23dbde7c4947edd4f2f1829a84fc
parentd8b094dabb0fa16388340ca823d0a38285d2d6ce
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