doc: Inform about aminsertcleanup optional NULLness

This index AM callback has been introduced in c1ec02be1d and it is
optional, currently only being used by BRIN.  Optional callbacks are
documented with NULL as possible value in amapi.h and indexam.sgml, but
this callback has missed this part of the description.

Reported-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Japin Li <japinli@hotmail.com>
Discussion: https://postgr.es/m/CAHut+PvgYcPmPDi1YdHMJY5upnyGRpc0N8pk1xNB11xDSBwNog@mail.gmail.com
Backpatch-through: 17
REL_17_STABLE
Michael Paquier 2 months ago
parent 2805e1c1ed
commit d331243dc9
  1. 2
      doc/src/sgml/indexam.sgml
  2. 2
      src/include/access/amapi.h

@ -141,7 +141,7 @@ typedef struct IndexAmRoutine
ambuild_function ambuild; ambuild_function ambuild;
ambuildempty_function ambuildempty; ambuildempty_function ambuildempty;
aminsert_function aminsert; aminsert_function aminsert;
aminsertcleanup_function aminsertcleanup; aminsertcleanup_function aminsertcleanup; /* can be NULL */
ambulkdelete_function ambulkdelete; ambulkdelete_function ambulkdelete;
amvacuumcleanup_function amvacuumcleanup; amvacuumcleanup_function amvacuumcleanup;
amcanreturn_function amcanreturn; /* can be NULL */ amcanreturn_function amcanreturn; /* can be NULL */

@ -271,7 +271,7 @@ typedef struct IndexAmRoutine
ambuild_function ambuild; ambuild_function ambuild;
ambuildempty_function ambuildempty; ambuildempty_function ambuildempty;
aminsert_function aminsert; aminsert_function aminsert;
aminsertcleanup_function aminsertcleanup; aminsertcleanup_function aminsertcleanup; /* can be NULL */
ambulkdelete_function ambulkdelete; ambulkdelete_function ambulkdelete;
amvacuumcleanup_function amvacuumcleanup; amvacuumcleanup_function amvacuumcleanup;
amcanreturn_function amcanreturn; /* can be NULL */ amcanreturn_function amcanreturn; /* can be NULL */

Loading…
Cancel
Save