How To Check User Permissions In Postgresql