User name to connect as (not the user name to create). Specifies the TCP port or local Unix domain socket file extension on which the server is listening for connections. If the value begins with a slash, it is used as the directory for the Unix domain socket. Specifies the host name of the machine on which the server is running. Show help about createuser command line arguments, and exit.Ĭreateuser also accepts the following command-line arguments for connection parameters: The new user will not have the REPLICATION privilege, which is described more fully in the documentation for CREATE ROLE. The new user will have the REPLICATION privilege, which is described more fully in the documentation for CREATE ROLE. The new user will not bypass row-level security (RLS) policies. The new user will bypass every row-level security (RLS) policy. The default is to set no password expiry date. Set a date and time after which the role's password is no longer valid. The new user will not be allowed to create new roles. See role creation for more details about what capabilities are conferred by this privilege. The new user will be allowed to create, alter, drop, comment on, change the security label for other roles that is, this user will have CREATEROLE privilege. This is not necessary if you do not plan on using password authentication. If given, createuser will issue a prompt for the password of the new user. ![]() Multiple existing roles can be specified by writing multiple -m switches. Specifies an existing role that will be automatically added as a member of the new role. (A role without login privilege is still useful as a means of managing database permissions.) -m role The new user will not be allowed to log in. The new user will be allowed to log in (that is, the user name can be used as the initial session user identifier). (This was the default behavior up to PostgreSQL 9.1.) -l Prompt for the user name if none is specified on the command line, and also prompt for whichever of the options -d/ -D, -r/ -R, -s/ -S is not specified on the command line. The new role will not automatically inherit privileges of roles it is a member of. The new role will automatically inherit privileges of roles it is a member of. Multiple existing roles can be specified by writing multiple -g switches. Specifies the new role should be automatically added as a member of the specified existing role. This option is obsolete but still accepted for backward compatibility. ![]() eĮcho the commands that createuser generates and sends to the server. The new user will not be allowed to create databases. The new user will be allowed to create databases. Set a maximum number of connections for the new user. Multiple existing roles can be specified by writing multiple -a switches. Specifies an existing role that will be automatically added as a member of the new role with admin option, giving it the right to grant membership in the new role to others. This name must be different from all existing roles in this PostgreSQL installation. Specifies the name of the PostgreSQL user to be created.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |