You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support SET FROM CURRENT in CREATE/ALTER FUNCTION, ALTER DATABASE, ALTER ROLE.
(Actually, it works as a plain statement too, but I didn't document that
because it seems a bit useless.) Unify VariableResetStmt with
VariableSetStmt, and clean up some ancient cruft in the representation of
same.
@@ -37,7 +37,9 @@ where <replaceable class="PARAMETER">option</replaceable> can be:
37
37
ALTER ROLE <replaceable class="PARAMETER">name</replaceable> RENAME TO <replaceable>newname</replaceable>
38
38
39
39
ALTER ROLE <replaceable class="PARAMETER">name</replaceable> SET <replaceable>configuration_parameter</replaceable> { TO | = } { <replaceable>value</replaceable> | DEFAULT }
40
+
ALTER ROLE <replaceable class="PARAMETER">name</replaceable> SET <replaceable>configuration_parameter</replaceable> FROM CURRENT
40
41
ALTER ROLE <replaceable class="PARAMETER">name</replaceable> RESET <replaceable>configuration_parameter</replaceable>
42
+
ALTER ROLE <replaceable class="PARAMETER">name</replaceable> RESET ALL
41
43
</synopsis>
42
44
</refsynopsisdiv>
43
45
@@ -77,7 +79,7 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> RESET <replaceable>
77
79
</para>
78
80
79
81
<para>
80
-
The third and the fourth variant change a role's session default for
82
+
The remaining variants change a role's session default for
81
83
a specified configuration variable. Whenever the role subsequently
82
84
starts a new session, the specified value becomes the session default,
83
85
overriding whatever setting is present in <filename>postgresql.conf</>
@@ -155,6 +157,8 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> RESET <replaceable>
155
157
role-specific variable setting is removed, so the role will
156
158
inherit the system-wide default setting in new sessions. Use
157
159
<literal>RESET ALL</literal> to clear all role-specific settings.
160
+
<literal>SET FROM CURRENT</> saves the session's current value of
@@ -37,7 +37,9 @@ where <replaceable class="PARAMETER">option</replaceable> can be:
37
37
ALTER USER <replaceable class="PARAMETER">name</replaceable> RENAME TO <replaceable>newname</replaceable>
38
38
39
39
ALTER USER <replaceable class="PARAMETER">name</replaceable> SET <replaceable>configuration_parameter</replaceable> { TO | = } { <replaceable>value</replaceable> | DEFAULT }
40
+
ALTER USER <replaceable class="PARAMETER">name</replaceable> SET <replaceable>configuration_parameter</replaceable> FROM CURRENT
40
41
ALTER USER <replaceable class="PARAMETER">name</replaceable> RESET <replaceable>configuration_parameter</replaceable>
42
+
ALTER USER <replaceable class="PARAMETER">name</replaceable> RESET ALL
| SET <replaceable class="parameter">parameter</replaceable> { TO | = } { <replaceable class="parameter">value</replaceable> | DEFAULT }
31
+
| SET <replaceable class="parameter">configuration_parameter</replaceable> { TO <replaceable class="parameter">value</replaceable> | = <replaceable class="parameter">value</replaceable> | FROM CURRENT }
32
32
| AS '<replaceable class="parameter">definition</replaceable>'
33
33
| AS '<replaceable class="parameter">obj_file</replaceable>', '<replaceable class="parameter">link_symbol</replaceable>'
34
34
} ...
@@ -324,13 +324,15 @@ CREATE [ OR REPLACE ] FUNCTION
0 commit comments