Re: BUG #19483: pg_upgrade fails with orphan records in pg_init_priv catalog table

Greg Sabino Mullane <htamfids@gmail.com>

From: Greg Sabino Mullane <htamfids@gmail.com>
To: huseyin.d3r@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2026-05-20T13:06:58Z
Lists: pgsql-bugs
>
> PostgreSQL version: 18.3
> ...

5. Verify orphan records remain in pg_init_privs:erprise Postgres Software
> Products & Tech Support
>

Thanks for providing a failing use case. I ran this on a 18.3 server and
found no orphaned rows - but I used the pg_stat_statements extension
instead of pg_wait_sampling. Could you try your experiment using
pg_stat_statements? And could you also show us the contents of the errant
rows in pg_init_privs for the failing case?