I not sure, but if I good remember nobody said somethig bad about PetreE proposal for this, why you prepare new? IMHO Peter's proposal was good. And small suggestion, we need the "GRANT ... WITH ADMIN OPTION" or something like this. Karel
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных