Andrew Dunstan <andrew@dunslane.net> writes:
> Shaunak Godbole wrote:
>> We are trying to introduce access control.
> This sounds like a pretty ugly hack.
Perhaps more to the point, it's already been done:
http://veil.projects.postgresql.org/
regards, tom lane