Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal
Date: 2022-03-03 16:39:21
Message-ID: 20220303163921.GA10776@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-pkg-debian

On Thu, Mar 03, 2022 at 04:11:56PM +0100, hubert depesz lubaczewski wrote:
> On Thu, Mar 03, 2022 at 04:04:28PM +0100, hubert depesz lubaczewski wrote:
> > and it worked, so I'm kinda at loss here.
>
> based on some talk on IRC, I was able to get stack trace from fail:

Based on the stack trace I was able to get it to break using simple
query:
select p.proname, (SELECT rolname from pg_catalog.pg_roles where oid = p.proowner) from pg_proc p;

I took a simple look at ranges of oid/prowner, and they look fine:

=# select min(proowner), max(proowner), count(*) from pg_proc;
min │ max │ count
─────┼─────┼───────
10 │ 10 │ 2970
(1 row)

16:38:34 db: postgres(at)postgres, pid:1991057
=# select min(oid), max(oid), count(*) from pg_roles;
min │ max │ count
─────┼───────────┼───────
10 │ 310235824 │ 244
(1 row)

Also, as I didn't mention it before: it's Pg 12.9.

Best regards,

depesz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2022-03-03 16:44:01 Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal
Previous Message Tom Lane 2022-03-03 15:48:16 Re: Couldn't cast to record[]

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message hubert depesz lubaczewski 2022-03-03 16:44:01 Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal
Previous Message hubert depesz lubaczewski 2022-03-03 15:11:56 Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal