pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add ALTER .. NO DEPENDS ON
Date: Mon, 20 Apr 2020 17:47:58 +0000
Message-ID: <E1jQaWU-00013l-9e@gemulon.postgresql.org> (raw)

Add ALTER .. NO DEPENDS ON

Commit f2fcad27d59c (9.6 era) added the ability to mark objects as
dependent an extension, but forgot to add a way for such dependencies to
be removed.  This commit fixes that oversight.

Strictly speaking this should be backpatched to 9.6, but due to lack of
demand we're not doing so at this time.

Discussion: https://postgr.es/m/20200217225333.GA30974@alvherre.pgsql
Reviewed-by: ahsan hadi <ahsan.hadi@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5fc703946bf3b18642ce83b937671d254a8ac5b5

Modified Files
--------------
doc/src/sgml/ref/alter_function.sgml               | 10 +++--
doc/src/sgml/ref/alter_index.sgml                  |  9 ++--
doc/src/sgml/ref/alter_materialized_view.sgml      | 11 ++---
doc/src/sgml/ref/alter_trigger.sgml                |  7 +++-
src/backend/catalog/pg_depend.c                    | 49 ++++++++++++++++++++++
src/backend/commands/alter.c                       | 24 +++++++----
src/backend/nodes/copyfuncs.c                      |  1 +
src/backend/nodes/equalfuncs.c                     |  1 +
src/backend/parser/gram.y                          | 36 ++++++++++------
src/include/catalog/dependency.h                   |  4 ++
src/include/nodes/parsenodes.h                     |  1 +
.../test_extensions/expected/test_extdepend.out    | 34 +++++++++++++++
.../modules/test_extensions/sql/test_extdepend.sql | 17 +++++++-
13 files changed, 168 insertions(+), 36 deletions(-)



Message-ID: <E1jQaWU-00013l-9e@gemulon.postgresql.org>
Permalink:  ../E1jQaWU-00013l-9e@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jQaWU-00013l-9e@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Add ALTER .. NO DEPENDS ON
  In-Reply-To: <E1jQaWU-00013l-9e@gemulon.postgresql.org>
  References: <E1jQaWU-00013l-9e@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