From: Stephen Frost <sfrost@snowman.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: pg_dump only selected components of ACCESS METHODs
Date: Tue, 07 Jun 2016 13:56:07 +0000
Message-ID: <E1bAHUF-00043s-UW@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
pg_dump only selected components of ACCESS METHODs
dumpAccessMethod() didn't get the memo that we now have a bitfield for
the components which should be dumped instead of a simple boolean.
Correct that by checking if the relevant bit is set for each component
being dumped out (and not dumping it out if it isn't set).
This corrects an issue where CREATE ACCESS METHOD commands were being
included in non-binary-upgrades when an extension included an access
method (as the bloom extensions does).
Also add a regression test to make sure that we only dump out the
ACCESS METHOD commands, when they are part of an extension, when doing
a binary upgrade.
Pointed out by Thom Brown.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/562f06f3f0da92e397a2f05e1b9b5bfbde336fb2
Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 26 ++++++++++++----------
src/test/modules/test_pg_dump/t/001_base.pl | 20 +++++++++++++++++
.../modules/test_pg_dump/test_pg_dump--1.0.sql | 2 ++
3 files changed, 36 insertions(+), 12 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: sfrost@snowman.net
Subject: Re: pgsql: pg_dump only selected components of ACCESS METHODs
In-Reply-To: <E1bAHUF-00043s-UW@gemulon.postgresql.org>
References: <E1bAHUF-00043s-UW@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