aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-02-03 11:27:13 +0100
committerPeter Eisentraut <peter@eisentraut.org>2021-02-03 11:43:01 +0100
commit1d3ce0223c6a527c2f464fb8e6b3874be4e7332e (patch)
treed5b729a4a6123a4db3e5136f6d77e13ce7266b94 /contrib/postgres_fdw/postgres_fdw.c
parent0fe8b1f7d48ed2d5f50d6583481f70d2ebf2a073 (diff)
downloadpostgresql-1d3ce0223c6a527c2f464fb8e6b3874be4e7332e.tar.gz
postgresql-1d3ce0223c6a527c2f464fb8e6b3874be4e7332e.zip
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions