mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-29 05:47:19 +02:00
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 |
||
---|---|---|
.. | ||
expected | ||
sql | ||
t | ||
.gitignore | ||
blcost.c | ||
blinsert.c | ||
bloom--1.0.sql | ||
bloom.control | ||
bloom.h | ||
blscan.c | ||
blutils.c | ||
blvacuum.c | ||
blvalidate.c | ||
Makefile |