pgsql: Fix broken dependency-mongering for index operator classes/famil

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix broken dependency-mongering for index operator classes/famil
Date: 2016-04-14 03:33:43
Message-ID: E1aqY2J-0000uI-SY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/92a30a7eb0cadb008e18053f199af7de3fc1abaa

Modified Files
--------------
src/backend/commands/opclasscmds.c | 21 ++++++++----------
src/test/regress/expected/create_am.out | 35 +++++++++++++-----------------
src/test/regress/expected/sanity_check.out | 2 +-
src/test/regress/sql/create_am.sql | 21 ++++++++----------
4 files changed, 34 insertions(+), 45 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2016-04-14 04:22:38 Re: [COMMITTERS] pgsql: Add regression tests for multiple synchronous standbys.
Previous Message Tom Lane 2016-04-14 02:42:59 Re: pgsql: Fix pg_dump so pg_upgrade'ing an extension with simple opfamilie