reassign_owned.7
来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 48 行
7
48 行
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "REASSIGN OWNED" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEREASSIGN OWNED \- change the ownership of database objects owned by a database role.SH SYNOPSIS.sp.nfREASSIGN OWNED BY \fIold_role\fR [, ...] TO \fInew_role\fR.sp.fi.SH "DESCRIPTION".PP\fBREASSIGN OWNED\fR instructs the system to changethe ownership of the database objects owned by one of theold_roles, to new_role..SH "PARAMETERS".TP\fB\fIold_role\fB\fRThe name of a role. The ownership of all the objects in thecurrent database owned by this role will be reassigned to\fInew_role\fR..TP\fB\fInew_role\fB\fRThe name of the role that will be made the new owner of theaffected objects..SH "NOTES".PP\fBREASSIGN OWNED\fR is often used to prepare for theremoval of one or more roles. Because \fBREASSIGNOWNED\fR only affects the objects in the current database,it is usually necessary to execute this command in each databasethat contains objects owned by a role that is to be removed..PPThe DROP OWNED [\fBdrop_owned\fR(7)] command is an alternative thatdrops all the database objects owned by one or more roles..PPThe \fBREASSIGN OWNED\fR command does not affect theprivileges granted to the old_roles in objects that are not ownedby them. Use \fBDROP OWNED\fR to revoke thoseprivileges..SH "COMPATIBILITY".PPThe \fBREASSIGN OWNED\fR statement is aPostgreSQL extension..SH "SEE ALSO"DROP OWNED [\fBdrop_owned\fR(7)], DROP ROLE [\fBdrop_role\fR(l)]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?