pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: tableam: Add pg_dump support.
Date: Wed, 06 Mar 2019 18:01:15 +0000
Message-ID: <E1h1aqx-0002gs-Gl@gemulon.postgresql.org> (raw)

tableam: Add pg_dump support.

This adds pg_dump support for table AMs in a similar manner to how
tablespaces are handled. That is, instead of specifying the AM for
every CREATE TABLE etc, emit SET default_table_access_method
statements. That makes it easier to change the AM for all/most tables
in a dump, and allows restore to succeed even if some AM is not
available.

This increases the dump archive version, as a tables/matview's AM
needs to be tracked therein.

Author: Dimitri Dolgov, Andres Freund
Discussion:
    https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
    https://postgr.es/m/20190304234700.w5tmhducs5wxgzls@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3b925e905de3204ffef64fa4d53dd7bbac1a143f

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c | 57 +++++++++++++++++++++++++++++++++-
src/bin/pg_dump/pg_backup_archiver.h |  6 +++-
src/bin/pg_dump/pg_dump.c            | 22 +++++++++++--
src/bin/pg_dump/pg_dump.h            |  1 +
src/bin/pg_dump/t/002_pg_dump.pl     | 60 ++++++++++++++++++++++++++++++++++++
5 files changed, 142 insertions(+), 4 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1h1aqx-0002gs-Gl@gemulon.postgresql.org>
Permalink:  ../E1h1aqx-0002gs-Gl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h1aqx-0002gs-Gl@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: andres@anarazel.de
  Subject: Re: pgsql: tableam: Add pg_dump support.
  In-Reply-To: <E1h1aqx-0002gs-Gl@gemulon.postgresql.org>
  References: <E1h1aqx-0002gs-Gl@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