While looking at this, I wrote a few tests cases for sequence privileges, because that was not covered at all. That patch is attached.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных