Re: Reverting SET SESSION AUTHORIZATION command
От | Fernando Nasser |
---|---|
Тема | Re: Reverting SET SESSION AUTHORIZATION command |
Дата | |
Msg-id | 3C84D7D1.5793D92D@redhat.com обсуждение исходный текст |
Ответ на | Reverting SET SESSION AUTHORIZATION command (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Reverting SET SESSION AUTHORIZATION command
|
Список | pgsql-hackers |
Tom Lane wrote: > > The syntax that comes to mind offhand is > SET SESSION AUTHORIZATION DEFAULT; > but perhaps someone has a better idea. > Tom, The SQL standard has already defined what should go there. That would be CURRENT_USER, so you would have: SET SESSION AUTHORIZATION CURRENT_USER Note that CURRENT_USER is _not_ to be affected by a It remains the same user that was used for the connection. The SESSION_USER is the one that changes if you issue a SET SESSION AUTHORIZATION (otherwise is the same as the CURRENT_USER). P.S.: I did not name those things. Complains to the SQL std committee :-) -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9
В списке pgsql-hackers по дате отправления: