Re: pg_upgrade issue upgrading 10 -> 13 - Mailing list pgsql-general

From Bruce Momjian
Subject Re: pg_upgrade issue upgrading 10 -> 13
Date
Msg-id 20201001170253.GB15909@momjian.us
Whole thread Raw
In response to Re: pg_upgrade issue upgrading 10 -> 13  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On Thu, Oct  1, 2020 at 09:03:31AM -0700, Adrian Klaver wrote:
> On 10/1/20 7:51 AM, Sean Brown wrote:
> > I’m having a little problem using pg_upgrade to move from 10 to 13, I’m assuming the issue is related to the
removalof 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”;
> 
> Which points to the dangers of doing things to the system tables. They can
> change/disappear between major versions.

And pg_dump (used by pg_upgrade) had little handling for such changes.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee




pgsql-general by date:

Previous
From: Eduard Català
Date:
Subject: Rows removed on child table when updating parent partitioned table.
Next
From: Jonathan Strong
Date:
Subject: Re: Rows removed on child table when updating parent partitioned table.