postgresql/src/bin/pg_dump
Peter Eisentraut 0bf83648a5 pg_dump: Fix dumping of inherited generated columns
Generation expressions of generated columns are always inherited, so
there is no need to set them separately in child tables, and there is
no syntax to do so either.  The code previously used the code paths
for the handling of default values, for which different rules apply;
in particular it might want to set a default value explicitly for an
inherited column.  This resulted in unrestorable dumps.  For generated
columns, just skip them in inherited tables.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/15830.1575468847%40sss.pgh.pa.us
2021-02-03 11:27:13 +01:00
..
po Translation updates 2020-05-18 12:49:30 +02:00
t pg_dump: Fix dumping of inherited generated columns 2021-02-03 11:27:13 +01:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
common.c pg_dump: Fix dumping of inherited generated columns 2021-02-03 11:27:13 +01:00
compress_io.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
compress_io.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
dumputils.c Fix pg_dump for GRANT OPTION among initial privileges. 2021-01-16 12:21:35 -08:00
dumputils.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
nls.mk Fix gettext triggers specification 2019-08-26 19:06:01 +02:00
parallel.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
parallel.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_backup.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:04 -05:00
pg_backup_archiver.c pg_dump: Don't use enums for defining bit mask values 2020-12-11 19:15:30 +01:00
pg_backup_archiver.h doc: Improve description of min_dynamic_shared_memory 2020-12-29 16:49:14 +09:00
pg_backup_custom.c Yet more elimination of dead stores and useless initializations. 2020-09-05 13:17:32 -04:00
pg_backup_db.c Avoid redundantly prefixing PQerrorMessage for a connection failure. 2021-01-22 16:52:31 -05:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:04 -05:00
pg_backup_directory.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_backup_null.c Remove useless "return;" lines 2019-11-28 16:48:37 -03:00
pg_backup_tar.c Remove unused parameters 2020-09-19 13:29:54 +02:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_backup_utils.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_dump.c pg_dump: Fix dumping of inherited generated columns 2021-02-03 11:27:13 +01:00
pg_dump.h pg_dump: label PUBLICATION TABLE ArchiveEntries with an owner. 2021-01-14 16:19:38 -05:00
pg_dump_sort.c Dump ALTER TABLE ... ATTACH PARTITION as a separate ArchiveEntry. 2021-01-11 21:09:18 -05:00
pg_dumpall.c Avoid redundantly prefixing PQerrorMessage for a connection failure. 2021-01-22 16:52:31 -05:00
pg_restore.c Fix handling of -d "connection string" in pg_dump/pg_restore. 2020-09-24 18:19:38 -04:00