Add assertions for all the required index AM callbacks Similar checks are done for the mandatory table AM callbacks. A portion of the index AM callbacks are optional and can be NULL; the rest is mandatory and is documented as such in the documentation and in amapi.h.
These checks are useful to detect quickly if all the mandatory callbacks are defined when implementing a new index access method, as the assertions are run when loading the AM. Author: Japin Li <japi...@hotmail.com> Discussion: https://postgr.es/m/me0p300mb0445795d31ceab92c58b41fdb6...@me0p300mb0445.ausp300.prod.outlook.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6f22a82a401d267e4bf1fcbcff8d6adb24e14d58 Modified Files -------------- src/backend/access/index/amapi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)