Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8fbef109
Commit
8fbef109
authored
Mar 28, 2009
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better document that SET ROLE does not uset ALTER ROLE SET settings;
suggested wording from Josh Berkus.
parent
3ab95c2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
15 deletions
+27
-15
doc/src/sgml/ref/alter_role.sgml
doc/src/sgml/ref/alter_role.sgml
+19
-14
doc/src/sgml/ref/set_role.sgml
doc/src/sgml/ref/set_role.sgml
+8
-1
No files found.
doc/src/sgml/ref/alter_role.sgml
View file @
8fbef109
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_role.sgml,v 1.1
1 2008/11/14 10:22:45 petere
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_role.sgml,v 1.1
2 2009/03/28 03:26:02 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -79,19 +79,18 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> RESET ALL
password is <literal>MD5</>-encrypted.
</para>
<para>
The remaining variants change a role's session default for
a specified configuration variable. Whenever the role subsequently
starts a new session, the specified value becomes the session default,
overriding whatever setting is present in <filename>postgresql.conf</>
or has been received from the <command>postgres</command> command line.
(For a role without <literal>LOGIN</> privilege, session defaults have
no effect.)
Ordinary roles can change their own session defaults.
Superusers can change anyone's session defaults.
Roles having <literal>CREATEROLE</> privilege can change defaults for
non-superuser roles.
Certain variables cannot be set this way, or can only be
<para>
The remaining variants change a role's session default for a
specified configuration variable. Whenever the role subsequently
starts a new session, the specified value becomes the session
default, overriding whatever setting is present in
<filename>postgresql.conf</> or has been received from the postgres
command line. This only happens at login time, so configuration
settings associated with a role to which you've <xref
linkend="sql-set-role" endterm="sql-set-role-title"> will be ignored.
Superusers can change anyone's session defaults. Roles having
<literal>CREATEROLE</> privilege can change defaults for non-superuser
roles. Certain variables cannot be set this way, or can only be
set if a superuser issues the command.
</para>
</refsect1>
...
...
@@ -162,6 +161,12 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> RESET ALL
the parameter as the role-specific value.
</para>
<para>
Role-specific variable setting take effect only at login;
<xref linkend="sql-set-role" endterm="sql-set-role-title">
does not process role-specific variable settings.
</para>
<para>
See <xref linkend="sql-set" endterm="sql-set-title"> and <xref
linkend="runtime-config"> for more information about allowed
...
...
doc/src/sgml/ref/set_role.sgml
View file @
8fbef109
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/set_role.sgml,v 1.
6 2008/11/14 10:22:47 petere
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/set_role.sgml,v 1.
7 2009/03/28 03:26:02 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -91,6 +91,13 @@ RESET ROLE
allowed to a later <command>SET ROLE</>.
</para>
<para>
<command>SET ROLE</> does not process session variables as specified by
the role's <xref linkend="sql-alterrole"
endterm="sql-alterrole-title"> settings; this only happens during
login.
</para>
<para>
<command>SET ROLE</> cannot be used within a
<literal>SECURITY DEFINER</> function.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment