From: Bruce Momjian <bruce@momjian.us>
To: Thomas Kellerer <shammat@gmx.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_upgrade issue upgrading 10 -> 13
Date: Thu, 1 Oct 2020 11:43:52 -0400
Message-ID: <20201001154352.GA15909@momjian.us> (raw)
In-Reply-To: <e06ce752-4e0c-81f2-869b-bd41486d1f37@gmx.net>
References: <918798A5-7ADF-4252-A2BF-E5639F45EC15@saminds.com>
<e06ce752-4e0c-81f2-869b-bd41486d1f37@gmx.net>
On Thu, Oct 1, 2020 at 05:28:53PM +0200, Thomas Kellerer wrote:
>
>
> Sean Brown schrieb am 01.10.2020 um 16:51:
> > I’m having a little problem using pg_upgrade to move from 10 to 13,
> > I’m assuming the issue is related to the removal of pg_pltemplate,
> > but I can’t find anything related to how to handle it.
> >
> > pg_upgrade —check reports that the clusters are compatible, but the
> > actual upgrade fails starting the new cluster with -
> >
> > ERROR: relation “pg_catalog.pg_pltemplate” does not exist STATEMENT:
> > GRANT SELECT ON TABLE “pg_catalog"."pg_pltemplate” TO "appuser”;
> >
> > Is there a way to deal with this that doesn’t include dropping the
> > source table?
> >
>
> Does revoking the privilege before running pg_upgrade help?
>
> So in the v10 database:
>
> revoke select on pg_catalog.pg_pltemplate from appuser;
Yeah, there must be a reference to pg_catalog.pg_pltemplate somewhere
that was missed. I think a simple dump/restore would also error on the
restore, but a normal restore might ignore the error, while pg_upgrade
will not.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
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-general@postgresql.org
Cc: bruce@momjian.us, shammat@gmx.net
Subject: Re: pg_upgrade issue upgrading 10 -> 13
In-Reply-To: <20201001154352.GA15909@momjian.us>
References: <918798A5-7ADF-4252-A2BF-E5639F45EC15@saminds.com> <e06ce752-4e0c-81f2-869b-bd41486d1f37@gmx.net> <20201001154352.GA15909@momjian.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