📄 alter_tablespace.7
字号:
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "ALTER TABLESPACE" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEALTER TABLESPACE \- change the definition of a tablespace.SH SYNOPSIS.sp.nfALTER TABLESPACE \fIname\fR RENAME TO \fInewname\fRALTER TABLESPACE \fIname\fR OWNER TO \fInewowner\fR.sp.fi.SH "DESCRIPTION".PP\fBALTER TABLESPACE\fR changes the definition ofa tablespace..PPYou must own the tablespace to use \fBALTER TABLESPACE\fR.To alter the owner, you must also be a direct or indirect member of the newowning role.(Note that superusers have these privileges automatically.).SH "PARAMETERS".TP\fB\fIname\fB\fRThe name of an existing tablespace..TP\fB\fInewname\fB\fRThe new name of the tablespace. The new name cannotbegin with pg_, as such namesare reserved for system tablespaces..TP\fB\fInewowner\fB\fRThe new owner of the tablespace..SH "EXAMPLES".PPRename tablespace index_space to fast_raid:.sp.nfALTER TABLESPACE index_space RENAME TO fast_raid;.sp.fi.PPChange the owner of tablespace index_space:.sp.nfALTER TABLESPACE index_space OWNER TO mary;.sp.fi.SH "COMPATIBILITY".PPThere is no \fBALTER TABLESPACE\fR statement inthe SQL standard..SH "SEE ALSO"CREATE TABLESPACE [\fBcreate_tablespace\fR(7)], DROP TABLESPACE [\fBdrop_tablespace\fR(l)]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -