成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

SET SESSION AUTHORIZATION 中文man頁面

系統
這條命令把當前 SQL 會話環境里的會話用戶標識和當前用戶標識設置為 username。 這個用戶名可以寫成一個標識符或者一個字串文本。 使用這個命令,我們可以臨時變成一個非特權用戶,稍后再切換回超級用戶。

NAME

SET SESSION AUTHORIZATION - 為當前會話設置會話用戶標識符和當前用戶標識符

SYNOPSIS

SET [ SESSION | LOCAL ] SESSION AUTHORIZATION username
SET [ SESSION | LOCAL ] SESSION AUTHORIZATION DEFAULT
RESET SESSION AUTHORIZATION

DESCRIPTION 描述


 這條命令把當前 SQL 會話環境里的會話用戶標識和當前用戶標識設置為 username。 這個用戶名可以寫成一個標識符或者一個字串文本。 使用這個命令,我們可以臨時變成一個非特權用戶,稍后再切換回超級用戶。


 會話用戶標識符一開始設置為(可能經過認證的)客戶端提供的用戶名。 當前用戶標識符通常等于會話用戶標識符, 但是可能在 "setuid" 的環境里或者類似的機制里臨時改變。 當前用戶標識符和權限檢查相關。


 只有在初始會話用戶(認證了的用戶)有超級用戶權限的時候,會話用戶標識符才能改變。 否則,只有在指定了被認證的用戶名的情況下,系統才接受該命令。

SESSION 和 LOCAL 修飾詞和普通 SET [set(7)] 命令里的作用相同。

DEFAULT 和 RESET 形式重置會話和當前用戶標識符為初始認證的用戶名。這些形式可以為任何用戶執行。  

EXAMPLES 例子

SELECT SESSION_USER, CURRENT_USER;

 session_user | current_user 
--------------+--------------
 peter        | peter

SET SESSION AUTHORIZATION 'paul';

SELECT SESSION_USER, CURRENT_USER;

 session_user | current_user 
--------------+--------------
 paul         | paul

COMPATIBILITY 兼容性


 SQL 標準允許一些其它的表達式出現在文本 username  的位置上,不過這個東西實際上并不重要。 PostgreSQL 允許標識符語法 ("username"),而 SQL 不允許。 SQL 不允許在一個事務的過程中用這條命令; PostgreSQL 沒有這個限制,因為沒有什么理由不允許這樣用。 標準中表示執行這條命令的權限要求是具體實現定義的。  

#p#

NAME

SET SESSION AUTHORIZATION - set the session user identifier and the current user identifier of the current session

SYNOPSIS

SET [ SESSION | LOCAL ] SESSION AUTHORIZATION username
SET [ SESSION | LOCAL ] SESSION AUTHORIZATION DEFAULT
RESET SESSION AUTHORIZATION

DESCRIPTION

This command sets the session user identifier and the current user identifier of the current SQL-session context to be username. The user name may be written as either an identifier or a string literal. Using this command, it is possible, for example, to temporarily become an unprivileged user and later switch back to become a superuser.

The session user identifier is initially set to be the (possibly authenticated) user name provided by the client. The current user identifier is normally equal to the session user identifier, but may change temporarily in the context of ``setuid'' functions and similar mechanisms. The current user identifier is relevant for permission checking.

The session user identifier may be changed only if the initial session user (the authenticated user) had the superuser privilege. Otherwise, the command is accepted only if it specifies the authenticated user name.

The SESSION and LOCAL modifiers act the same as for the regular SET [set(7)] command.

The DEFAULT and RESET forms reset the session and current user identifiers to be the originally authenticated user name. These forms may be executed by any user.  

EXAMPLES

SELECT SESSION_USER, CURRENT_USER;

 session_user | current_user 
--------------+--------------
 peter        | peter

SET SESSION AUTHORIZATION 'paul';

SELECT SESSION_USER, CURRENT_USER;

 session_user | current_user 
--------------+--------------
 paul         | paul

COMPATIBILITY

The SQL standard allows some other expressions to appear in place of the literal username which are not important in practice. PostgreSQL allows identifier syntax ("username"), which SQL does not. SQL does not allow this command during a transaction; PostgreSQL does not make this restriction because there is no reason to. The privileges necessary to execute this command are left implementation-defined by the standard.

責任編輯:韓亞珊 來源: CMPP.net
相關推薦

2011-08-24 17:50:19

SET中文man

2011-08-24 17:53:08

SET CONSTRA中文man

2011-08-24 18:02:22

SET TRANSAC中文man

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-11 15:28:43

ali中文man

2011-08-11 16:31:49

biff中文man

2011-08-11 17:16:43

cce中文man

2011-08-11 18:05:04

chvt中文man

2011-08-11 18:13:07

clear中文man

2011-08-12 09:13:02

df中文man

2011-08-12 09:38:06

dircolors中文man

2011-08-12 09:44:37

dirname中文man

2011-08-12 10:20:02

echo中文man

2011-08-12 10:25:55

eject中文man

2011-08-12 11:07:19

git中文man

2011-08-12 13:18:19

head中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 久久成人综合 | 国产精品国产亚洲精品看不卡15 | 男人天堂视频在线观看 | 国产成人免费 | 欧美黄色免费网站 | 天天曰天天曰 | 亚洲欧洲国产视频 | 欧美精品影院 | 宅男伊人| 一区二区三区韩国 | 亚洲久草视频 | 日本成人免费观看 | 麻豆精品国产91久久久久久 | 日韩伦理一区二区 | 精品久久久一区二区 | 九九国产在线观看 | 国产激情在线观看 | v片网站 | 精品久久国产视频 | 国产激情一区二区三区 | 亚洲电影第1页 | 国产精品高清在线 | www.97国产| 久久精品亚洲精品国产欧美 | 日韩在线不卡 | 国产精品不卡视频 | 亚洲精品久久久一区二区三区 | 极品久久| 国产精品毛片 | 天堂一区| 久久国产精品一区 | 精品免费| 午夜精品久久久久久不卡欧美一级 | 亚洲顶级毛片 | 免费一级片 | 日本三级电影在线观看视频 | 视频一二三区 | 91麻豆精品一区二区三区 | 亚洲精品中文字幕在线观看 | av中文字幕在线播放 | 精品一区二区三区四区在线 |