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
In the particular case of GRANTED BY, this is specified in the SQLstandard. Since in PostgreSQL, CURRENT_ROLE is equivalent toCURRENT_USER, and CURRENT_USER is already supported here, addingCURRENT_ROLE is trivial. The other cases are PostgreSQL extensions,but for the same reason it also makes sense there.Reviewed-by: Vik Fearing <vik@postgresfriends.org>Reviewed-by: Asif Rehman <asifr.rehman@gmail.com>Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>Discussion:https://www.postgresql.org/message-id/flat/f2feac44-b4c5-f38f-3699-2851d6a76dc9%402ndquadrant.com
Copy file name to clipboardExpand all lines: doc/src/sgml/ref/alter_foreign_data_wrapper.sgml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ ALTER FOREIGN DATA WRAPPER <replaceable class="parameter">name</replaceable>
25
25
[ HANDLER <replaceable class="parameter">handler_function</replaceable> | NO HANDLER ]
26
26
[ VALIDATOR <replaceable class="parameter">validator_function</replaceable> | NO VALIDATOR ]
27
27
[ OPTIONS ( [ ADD | SET | DROP ] <replaceable class="parameter">option</replaceable> ['<replaceable class="parameter">value</replaceable>'] [, ... ]) ]
28
-
ALTER FOREIGN DATA WRAPPER <replaceable class="parameter">name</replaceable> OWNER TO { <replaceable>new_owner</replaceable> | CURRENT_USER | SESSION_USER }
28
+
ALTER FOREIGN DATA WRAPPER <replaceable class="parameter">name</replaceable> OWNER TO { <replaceable>new_owner</replaceable> |CURRENT_ROLE |CURRENT_USER | SESSION_USER }
29
29
ALTER FOREIGN DATA WRAPPER <replaceable class="parameter">name</replaceable> RENAME TO <replaceable>new_name</replaceable>