Pin the built-in index access methods.
authorTom Lane <[email protected]>
Thu, 19 May 2016 18:40:02 +0000 (14:40 -0400)
committerTom Lane <[email protected]>
Thu, 19 May 2016 18:40:02 +0000 (14:40 -0400)
commit16ea51a263bfbb009ba73f36494f49246933e93c
tree5a9f198bc2833ffd8e85ce2d0ec67f7d4dda3393
parente13ac5586c49c77f301329b79bd7e8f489d0e66f
Pin the built-in index access methods.

This was overlooked in commit 473b93287, which introduced DROP ACCESS
METHOD.  Although that command is restricted to superusers, we don't want
even superusers dropping the built-in methods; "DROP ACCESS METHOD btree"
in particular is unrecoverable from.  Pin these objects in the same way
that other initdb-created objects are pinned.

I chose to bump catversion for this fix.  That's not absolutely necessary
perhaps, but it will ensure that no 9.6 production systems are missing
the pin entries.
src/bin/initdb/initdb.c
src/include/catalog/catversion.h