From: Tom Lane <tgl@sss.pgh.pa.us>
To: 270246512@qq.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16243: non super user take pg_restore found some errors.
Date: Tue, 04 Feb 2020 11:27:38 -0500
Message-ID: <7310.1580833658@sss.pgh.pa.us> (raw)
In-Reply-To: <16243-1cfc4ec17c2664d9@postgresql.org>
References: <16243-1cfc4ec17c2664d9@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> When take the pg restore, both backup action and restore use non-super role
> user “cm” which is the owner of the DB. During pg_restore, the log show some
> errors such as "could not execute query: ERROR: must be owner of extension
> plpgsql", "could not execute query: ERROR: must be owner of extension
> plpgsql". I have some confusion. Are they correct behavior? If not, how to
> avoid them? thanks in advance.
This is expected behavior in v10. In later versions (I forget if
this was changed in v11 or v12), we rearranged the duties of pg_dump
so that it won't try to drop and recreate the plpgsql extension.
That wasn't an entirely backwards-compatible change though, so
it wasn't back-patched.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, 270246512@qq.com
Subject: Re: BUG #16243: non super user take pg_restore found some errors.
In-Reply-To: <7310.1580833658@sss.pgh.pa.us>
References: <16243-1cfc4ec17c2664d9@postgresql.org> <7310.1580833658@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox