]> granicus.if.org Git - postgresql/commit
Fix broken dependency-mongering for index operator classes/families.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Apr 2016 03:33:31 +0000 (23:33 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Apr 2016 03:33:31 +0000 (23:33 -0400)
commit92a30a7eb0cadb008e18053f199af7de3fc1abaa
tree6c755da85fbfe8bbc896fd98b1655d8b8a32df42
parentc8cb7453233b31a177b08a3b2bdac4c31508dc00
Fix broken dependency-mongering for index operator classes/families.

For a long time, opclasscmds.c explained that "we do not create a
dependency link to the AM [for an opclass or opfamily], because we don't
currently support DROP ACCESS METHOD".  Commit 473b93287040b200 invented
DROP ACCESS METHOD, but it batted only 1 for 2 on adding the dependency
links, and 0 for 2 on updating the comments about the topic.

In passing, undo the same commit's entirely inappropriate decision to
blow away an existing index as a side-effect of create_am.sql.
src/backend/commands/opclasscmds.c
src/test/regress/expected/create_am.out
src/test/regress/expected/sanity_check.out
src/test/regress/sql/create_am.sql