each database user is stored in the <literal>pg_authid</> system
catalog. Passwords can be managed with the SQL commands
<xref linkend="sql-createuser"> and
- <xref linkend="sql-alteruser">,
+ <xref linkend="sql-alterrole">,
e.g., <userinput>CREATE USER foo WITH PASSWORD 'secret'</userinput>.
If no password has been set up for a user, the stored password
is null and password authentication will always fail for that user.
Furthermore, it is possible to assign a set of parameter settings to
a user or a database. Whenever a session is started, the default
settings for the user and database involved are loaded. The
- commands <xref linkend="sql-alteruser">
+ commands <xref linkend="sql-alterrole">
and <xref linkend="sql-alterdatabase">,
respectively, are used to configure these settings. Per-database
settings override anything received from the
<para>
When a password is specified in <xref
linkend="sql-createuser"> or
- <xref linkend="sql-alteruser">
+ <xref linkend="sql-alterrole">
without writing either <literal>ENCRYPTED</> or
<literal>UNENCRYPTED</>, this parameter determines whether the
password is to be encrypted. The default is <literal>on</>
libraries to be loaded into specific sessions without an explicit
<command>LOAD</> command being given. For example, debugging could
be enabled for all sessions under a given user name by setting
- this parameter with <command>ALTER USER SET</>.
+ this parameter with <command>ALTER ROLE SET</>.
</para>
<para>
<para>
The following environment variables can be used to specify default
behavior for each <productname>PostgreSQL</productname> session. (See
- also the <xref linkend="sql-alteruser">
+ also the <xref linkend="sql-alterrole">
and <xref linkend="sql-alterdatabase">
commands for ways to set default behavior on a per-user or per-database
basis.)