Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> writes:
> Version 5 of the patch is attached.
Pushed with some cosmetic adjustments, such as tweaking comments.
One perhaps less than cosmetic adjustment is that I removed the
test case involving dropping the role. I didn't think it was
buying much now that we removed the code that was trying to do
something special in that situation. (Perhaps there is an argument
for having some testing of the system's behavior when running as a
dropped role, but I doubt that this is the place to start on that.)
regards, tom lane