Fix pg_dump/pg_restore to restore event trigger comments later.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 564c1e6d737d7c575e8af4fc271f497fcff9aecb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-04-08T15:23:40Z
Releases: 9.5.22
Fix pg_dump/pg_restore to restore event trigger comments later.

Repair an oversight in commit 8728b2c70: if we're postponing restore
of event triggers to the end, we must also postpone restoring any
comments on them, since of course we cannot create the comments first.
(This opens yet another opportunity for an event trigger to bollix
the restore, but there's no help for that.)

Per bug #16346 from Alexander Lakhin.

Like the previous commit, back-patch to all supported branches.

Hamid Akhtar and Tom Lane

Discussion: https://postgr.es/m/16346-6210ad7a0ea81be1@postgresql.org

Files

PathChange+/−
src/bin/pg_dump/pg_backup_archiver.c modified +12 −0

Discussion