postgresql/src/backend/access
Tom Lane 9f9682783b Invent "amadjustmembers" AM method for validating opclass members.
This allows AM-specific knowledge to be applied during creation of
pg_amop and pg_amproc entries.  Specifically, the AM knows better than
core code which entries to consider as required or optional.  Giving
the latter entries the appropriate sort of dependency allows them to
be dropped without taking out the whole opclass or opfamily; which
is something we'd like to have to correct obsolescent entries in
extensions.

This callback also opens the door to performing AM-specific validity
checks during opclass creation, rather than hoping than an opclass
developer will remember to test with "amvalidate".  For the most part
I've not actually added any such checks yet; that can happen in a
follow-on patch.  (Note that we shouldn't remove any tests from
"amvalidate", as those are still needed to cross-check manually
constructed entries in the initdb data.  So adding tests to
"amadjustmembers" will be somewhat duplicative, but it seems like
a good idea anyway.)

Patch by me, reviewed by Alexander Korotkov, Hamid Akhtar, and
Anastasia Lubennikova.

Discussion: https://postgr.es/m/4578.1565195302@sss.pgh.pa.us
2020-08-01 17:12:47 -04:00
..
brin Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
common Move syncscan.c to src/backend/access/common. 2020-07-29 16:59:33 +12:00
gin Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
gist Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
hash Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
heap Cache smgrnblocks() results in recovery. 2020-07-31 14:29:52 +12:00
index Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
nbtree Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
rmgrdesc WAL Log invalidations at command end with wal_level=logical. 2020-07-23 08:34:48 +05:30
spgist Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
table Move syncscan.c to src/backend/access/common. 2020-07-29 16:59:33 +12:00
tablesample
transam Use pg_pread() and pg_pwrite() in slru.c. 2020-08-02 00:23:35 +12:00
Makefile