diff options
author | Alvaro Herrera | 2021-07-16 21:29:22 +0000 |
---|---|---|
committer | Alvaro Herrera | 2021-07-16 21:29:22 +0000 |
commit | f0e21f2f61675f4e56ae53d32ea54d587a7c2257 (patch) | |
tree | 21bd25ee91ef7526d91037a3a5824b3b51faa71b /src/test/regress/expected/sanity_check.out | |
parent | df80fa2ee50478391445cef03e42c1b3d64fccca (diff) |
Fix pg_dump for disabled triggers on partitioned tables
pg_dump failed to preserve the 'enabled' flag (which can be not only
disabled, but also REPLICA or ALWAYS) for partitions which had it
changed from their respective parents. Attempt to handle that by
including a definition for such triggers in the dump, but replace the
standard CREATE TRIGGER line with an ALTER TRIGGER line.
Backpatch to 11, where these triggers can exist. In branches 11 and 12,
pick up a few test lines from commit b9b408c48724 to verify that
pg_upgrade is okay with these arrangements.
Co-authored-by: Justin Pryzby <[email protected]>
Co-authored-by: Álvaro Herrera <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/test/regress/expected/sanity_check.out')
-rw-r--r-- | src/test/regress/expected/sanity_check.out | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/regress/expected/sanity_check.out b/src/test/regress/expected/sanity_check.out index d9ce961be2b..a64f96e102c 100644 --- a/src/test/regress/expected/sanity_check.out +++ b/src/test/regress/expected/sanity_check.out @@ -213,6 +213,8 @@ tmp|f trigger_parted|t trigger_parted_p1|t trigger_parted_p1_1|t +trigger_parted_p2|t +trigger_parted_p2_2|t varchar_tbl|f view_base_table|t -- restore normal output mode |