AddingandDeletingPostgres Users Note that commands preceeded by a ’* ’ are to be executed from the Postgres terminal monitor, while those preceeded by a ’% ’ are to be executed from a C shell. Unless stated otherwise, shell com- mandsworkfromanyshell. 1. Adding ADBAmayaddaPostgresuserbyissuingthefollowingcommands. * append pg_user (usename=, usesysid=) where username is the user name from /etc/passwd, and userid is the user number or id from /etc/passwd. The usesysid number does not have to be identical to that in /etc/passwd, but the username has to exist on the machine that the user will run Postgres applications from (not necessarily on the Postgres server). In older versions of Postgres, you may have to do the following: * append pg_user (usename=") ? destroydb $i ? end 2.3. Delete Runningthe following query will delete that user from pg_database. * delete pg_user where pg_user.usesysid 3. ADDITIONAL 3.1. Superuser The superuser (root) or any other user with userid zero should not be a Postgres user - this will cause various problems. The DBA should be user "postgres".