Re: BUG #16346: pg_upgrade fails on a trigger with a comment - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16346: pg_upgrade fails on a trigger with a comment
Date
Msg-id 29776.1586360057@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #16346: pg_upgrade fails on a trigger with a comment  (Hamid Akhtar <hamid.akhtar@gmail.com>)
List pgsql-bugs
Hamid Akhtar <hamid.akhtar@gmail.com> writes:
> To recap, the attached patch moves restoration of comments to the
> RESTORE_PASS_POST_ACL. This ensures that comments are
> restored in a PASS when essentially all required objects are created
> including event triggers and materialized views (and any other db
> objects).

This is surely not a good idea as it stands, because it delays restore
of *all* object comments to the very end.  That's not nice for parallel
restores, and it also has large impact on pg_dump's behavior in cases
that have nothing to do with event triggers; which could cause unforeseen
problems.

The right way is to postpone only event trigger comments.  I fixed it
that way and pushed it.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Johannes Mols
Date:
Subject: Re: BUG #16351: PostgreSQL closing connection during requests withsegmentation fault
Next
From: PG Bug reporting form
Date:
Subject: BUG #16352: Data corruption in few tables