postgresql/contrib/bloom
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
..
expected Fix failure with lock mode used for custom relation options 2019-09-25 10:07:23 +09:00
sql Fix failure with lock mode used for custom relation options 2019-09-25 10:07:23 +09:00
t tap tests: replace 'master' with 'primary'. 2020-07-08 12:39:56 -07:00
.gitignore
blcost.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
blinsert.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
bloom--1.0.sql
bloom.control
bloom.h Implement operator class parameters 2020-03-30 19:17:23 +03:00
blscan.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
blutils.c Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
blvacuum.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
blvalidate.c Implement operator class parameters 2020-03-30 19:17:23 +03:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00