]> granicus.if.org Git - postgresql/commit
tableam: Add pg_dump support.
authorAndres Freund <andres@anarazel.de>
Wed, 6 Mar 2019 17:54:38 +0000 (09:54 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 6 Mar 2019 17:54:38 +0000 (09:54 -0800)
commit3b925e905de3204ffef64fa4d53dd7bbac1a143f
tree003f1401ba9dc765f50a46a868cbc75073621da3
parent8586bf7ed8889f39a59dd99b292014b73be85342
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
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/t/002_pg_dump.pl