-d, --createdb
- Allows the new user to create databases.
+ The new user is allowed to create databases.
-D, --no-createdb
- Forbids the new user to create databases.
+ The new user is not allowed to create databases.
-a, --adduser
- Allows the new user to create other users.
+ The new user is allowed to create other users.
+ (Note: actually, this makes the new user a superuser>.
+ The option is poorly named.)
-A, --no-adduser
- Forbids the new user to create other users.
+ The new user is not allowed to create other users (i.e.,
+ the new user is a regular user not a superuser).
- Only users with usesuper set in
- the pg_shadow table can create
+ Only superusers (users with usesuper set in
+ the pg_shadow table) can create
+ invoked by someone who is a
PostgreSQL
+ superuser.
+
+
+ Being a superuser also implies the ability to bypass access permission
+ checks within the database, so superuser-dom should not be granted lightly.
the
PostgreSQL interactive terminal
. Thus, there is nothing
special about creating users via this or other methods. This means
- that the
psql must be found by the script and that
- a database server is running at the targeted host. Also, any default
- settings and environment variables available to
psql
- and the
libpq front-end library do apply.
+ that the
psql application must be found by the
+ script and that
+ a database server must be running at the targeted host. Also, any default
+ settings and environment variables used by
psql
+ and the
libpq front-end library will apply.