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 pg_dump support for ALTER obj DEPENDS ON EXTENSION
Date: Wed, 11 Mar 2020 19:58:54 +0000
Message-ID: <E1jC7VG-0001hZ-QR@gemulon.postgresql.org> (raw)

Add pg_dump support for ALTER obj DEPENDS ON EXTENSION

pg_dump is oblivious to this kind of dependency, so they're lost on
dump/restores (and pg_upgrade).  Have pg_dump emit ALTER lines so that
they're preserved.  Add some pg_dump tests for the whole thing, also.

Reviewed-by: Tom Lane (offlist)
Reviewed-by: Ibrar Ahmed
Reviewed-by: Ahsan Hadi (who also reviewed commit 899a04f5ed61)
Discussion: https://postgr.es/m/20200217225333.GA30974@alvherre.pgsql

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f977e6dec8a01f32eee0ccfafc80646d3546b8f7

Modified Files
--------------
src/bin/pg_dump/common.c                    |   1 +
src/bin/pg_dump/pg_dump.c                   | 107 +++++++++++++++++++++++++---
src/bin/pg_dump/pg_dump.h                   |   1 +
src/test/modules/test_pg_dump/t/001_base.pl |  32 +++++++++
4 files changed, 133 insertions(+), 8 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1jC7VG-0001hZ-QR@gemulon.postgresql.org>
Permalink:  ../E1jC7VG-0001hZ-QR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jC7VG-0001hZ-QR@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 pg_dump support for ALTER obj DEPENDS ON EXTENSION
  In-Reply-To: <E1jC7VG-0001hZ-QR@gemulon.postgresql.org>
  References: <E1jC7VG-0001hZ-QR@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