I have Azure postgresql single server database which I need to give read permission to a newly created user.
CREATE USER "test@hostName" PASSWORD 'XXXX'; GRANT CONNECT ON DATABASE "test" TO "test@hostName";
ALTER DEFAULT PRIVILEGES FOR USER pgadmin IN SCHEMA public GRANT SELECT ON TABLES TO "test@hostName" ;
SELECT * FROM information_schema.role_table_grants WHERE grantee = 'test@hostName';
But when this user executes a select query Permission Denied message appear and not allowed to select. Any help is appreciated.