>
> 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?