pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_upgrade issue upgrading 10 -> 13
5+ messages / 4 participants
[nested] [flat]
* pg_upgrade issue upgrading 10 -> 13
@ 2020-10-01 14:51 Sean Brown <sean.brown@saminds.com>
0 siblings, 2 replies; 5+ messages in thread
From: Sean Brown @ 2020-10-01 14:51 UTC (permalink / raw)
To: pgsql-general
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?
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_upgrade issue upgrading 10 -> 13
@ 2020-10-01 15:28 Thomas Kellerer <shammat@gmx.net>
parent: Sean Brown <sean.brown@saminds.com>
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Kellerer @ 2020-10-01 15:28 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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;
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_upgrade issue upgrading 10 -> 13
@ 2020-10-01 15:43 Bruce Momjian <bruce@momjian.us>
parent: Thomas Kellerer <shammat@gmx.net>
0 siblings, 0 replies; 5+ messages in thread
From: Bruce Momjian @ 2020-10-01 15:43 UTC (permalink / raw)
To: Thomas Kellerer <shammat@gmx.net>; +Cc: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_upgrade issue upgrading 10 -> 13
@ 2020-10-01 16:03 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Sean Brown <sean.brown@saminds.com>
1 sibling, 1 reply; 5+ messages in thread
From: Adrian Klaver @ 2020-10-01 16:03 UTC (permalink / raw)
To: Sean Brown <sean.brown@saminds.com>; pgsql-general
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 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”;
Which points to the dangers of doing things to the system tables. They
can change/disappear between major versions.
>
> Is there a way to deal with this that doesn’t include dropping the source table?
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_upgrade issue upgrading 10 -> 13
@ 2020-10-01 17:02 Bruce Momjian <bruce@momjian.us>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 0 replies; 5+ messages in thread
From: Bruce Momjian @ 2020-10-01 17:02 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Sean Brown <sean.brown@saminds.com>; 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 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”;
>
> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2020-10-01 17:02 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 14:51 pg_upgrade issue upgrading 10 -> 13 Sean Brown <sean.brown@saminds.com>
2020-10-01 15:28 ` Thomas Kellerer <shammat@gmx.net>
2020-10-01 15:43 ` Bruce Momjian <bruce@momjian.us>
2020-10-01 16:03 ` Adrian Klaver <adrian.klaver@aklaver.com>
2020-10-01 17:02 ` Bruce Momjian <bruce@momjian.us>
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