PostgreSQL has slightly different approach of user rights management comparing to MySql and Oracle. In this article, we will cover very basic concepts how to setup users for your application / maintenance people.
Just for reference we will shortly overview user rights management topic in MySql and Oracle databases as well.
MySql
MySql uses concept of databases, which are in general collections of objects (tables, views, procedures, etc). Users are managed on instance (server) level and might have global, database or object specific privileges (see manual for details).
CREATE USER 'myUser'@'localhost' IDENTIFIED BY 'myPassword'; GRANT ALL PRIVILEGES ON mydb.* TO 'myUser'@'localhost' WITH GRANT OPTION; GRANT SELECT, UPDATE ON hrdb.* TO 'myUser'@'localhost'; GRANT INSERT ON erpdb.item TO 'myUser'@'localhost';