How To Check User Permissions In Postgres