pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix broken dependency-mongering for index operator classes/famil
Date: Thu, 14 Apr 2016 03:33:43 +0000
Message-ID: <E1aqY2J-0000uI-SY@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1aqY2J-0000uI-SY@gemulon.postgresql.org>
Permalink:  ../E1aqY2J-0000uI-SY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aqY2J-0000uI-SY@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix broken dependency-mongering for index operator classes/famil
  In-Reply-To: <E1aqY2J-0000uI-SY@gemulon.postgresql.org>
  References: <E1aqY2J-0000uI-SY@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox