Alexander Lakhin <exclusion(at)gmail(dot)com> writes:
> Regarding tests, perhaps just creating such loops in privileges.sql (and
> leaving them in the regression database) for pg_upgrade test would look
> simpler.
It's not okay for "make installcheck" to leave roles behind, so I
doubt you can make that work.
regards, tom lane