[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ALTER_VIEW.7
File is not writable. Editing disabled.
'\" t .\" Title: ALTER VIEW .\" Author: The PostgreSQL Global Development Group .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> .\" Date: 2017-11-06 .\" Manual: PostgreSQL 9.2.24 Documentation .\" Source: PostgreSQL 9.2.24 .\" Language: English .\" .TH "ALTER VIEW" "7" "2017-11-06" "PostgreSQL 9.2.24" "PostgreSQL 9.2.24 Documentation" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ALTER_VIEW \- change the definition of a view .\" ALTER VIEW .SH "SYNOPSIS" .sp .nf ALTER VIEW [ IF EXISTS ] \fIname\fR ALTER [ COLUMN ] \fIcolumn_name\fR SET DEFAULT \fIexpression\fR ALTER VIEW [ IF EXISTS ] \fIname\fR ALTER [ COLUMN ] \fIcolumn_name\fR DROP DEFAULT ALTER VIEW [ IF EXISTS ] \fIname\fR OWNER TO \fInew_owner\fR ALTER VIEW [ IF EXISTS ] \fIname\fR RENAME TO \fInew_name\fR ALTER VIEW [ IF EXISTS ] \fIname\fR SET SCHEMA \fInew_schema\fR ALTER VIEW [ IF EXISTS ] \fIname\fR SET ( \fIview_option_name\fR [= \fIview_option_value\fR] [, \&.\&.\&. ] ) ALTER VIEW [ IF EXISTS ] \fIname\fR RESET ( \fIview_option_name\fR [, \&.\&.\&. ] ) .fi .SH "DESCRIPTION" .PP \fBALTER VIEW\fR changes various auxiliary properties of a view\&. (If you want to modify the view\*(Aqs defining query, use \fBCREATE OR REPLACE VIEW\fR\&.) .PP You must own the view to use \fBALTER VIEW\fR\&. To change a view\*(Aqs schema, you must also have CREATE privilege on the new schema\&. To alter the owner, you must also be a direct or indirect member of the new owning role, and that role must have CREATE privilege on the view\*(Aqs schema\&. (These restrictions enforce that altering the owner doesn\*(Aqt do anything you couldn\*(Aqt do by dropping and recreating the view\&. However, a superuser can alter ownership of any view anyway\&.) .SH "PARAMETERS" .PP \fIname\fR .RS 4 The name (optionally schema\-qualified) of an existing view\&. .RE .PP IF EXISTS .RS 4 Do not throw an error if the view does not exist\&. A notice is issued in this case\&. .RE .PP SET/DROP DEFAULT .RS 4 These forms set or remove the default value for a column\&. A default value associated with a view column is inserted into \fBINSERT\fR statements on the view before the view\*(Aqs ON INSERT rule is applied, if the \fBINSERT\fR does not specify a value for the column\&. .RE .PP \fInew_owner\fR .RS 4 The user name of the new owner of the view\&. .RE .PP \fInew_name\fR .RS 4 The new name for the view\&. .RE .PP \fInew_schema\fR .RS 4 The new schema for the view\&. .RE .PP \fIview_option_name\fR .RS 4 The name of a view option to be set or reset\&. .RE .PP \fIview_option_value\fR .RS 4 The new value for a view option\&. .RE .SH "NOTES" .PP For historical reasons, \fBALTER TABLE\fR can be used with views too; but the only variants of \fBALTER TABLE\fR that are allowed with views are equivalent to the ones shown above\&. .SH "EXAMPLES" .PP To rename the view foo to bar: .sp .if n \{\ .RS 4 .\} .nf ALTER VIEW foo RENAME TO bar; .fi .if n \{\ .RE .\} .SH "COMPATIBILITY" .PP \fBALTER VIEW\fR is a PostgreSQL extension of the SQL standard\&. .SH "SEE ALSO" CREATE VIEW (\fBCREATE_VIEW\fR(7)), DROP VIEW (\fBDROP_VIEW\fR(7))
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 782.77 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A