目錄
新建用戶
CREATE ROLE woodart LOGIN PASSWORD 'chen' NOINHERIT VALID UNTIL 'infinity';
CREATE ROLE dba LOGIN PASSWORD 'your password' SUPERUSER INHERIT CREATEDB CREATEROLE REPLICATION;
dropuser -h192.168.1.1 -p 5432 -i -e testuser User "testuser" and any owned databases will be permanently deleted. Are you sure? (y/n) y