I have created a new database and I have some existing users who I want to grant full permission to access the database.
So to keep it simple I simply want to be able to connect to the database using a user name so I run the following:
GRANT CONNECT ON DATABASE my_database TO my_user;
This doesn't work I get a failed to create a connection when trying to connect, I have been into the database in pgadmin, i've given full access to everything and even made the user name a super user and still it doesn't work.
I am using a reporting tool to test the connection for the user account and all it is doing is trying to connect and it fails everytime with my users. I have created databases for them before and it's been fine but this time it's not working. I can access it through the main account and existing super users can access it but for some reason the none superusers can't access even when you grant them permissions.
GRANT CONNECT ON DATABASE my_database TO my_user;
GRANT USAGE ON SCHEMA my_schema TO my_user;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA my_schema TO my_user;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA my_schema TO my_user;
It looks like there is something needed for the user account, I have the users I want setup so they have "can login" privileges.
What am I doing wrong.