pgsql: Fix pg_dump/pg_restore to restore event trigger comments later.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix pg_dump/pg_restore to restore event trigger comments later.
Date: 2020-04-08 15:23:59
Message-ID: E1jMCYZ-0008Gh-1o@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d050c611373182ec87afd4912a330c4dac8684cc

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c | 12 ++++++++++++
1 file changed, 12 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2020-04-08 16:42:15 pgsql: Stabilize incremental_sort tests
Previous Message Thomas Munro 2020-04-08 11:55:51 pgsql: Rationalize GetWalRcv{Write,Flush}RecPtr().