I want to grant read/write privileges to new user only to one database, so he can't access other databases.
After I created new user with:
sudo -u postgres createuser <username>
What privileges this user get?
Is this all I need:
GRANT ALL PRIVILEGES ON my_db TO new_user;
to get access to only one database?
What is the best way to do this?
Using PostgreSQL 10