ALTER VIEW#

Synopsis#

ALTER VIEW name RENAME TO new_name
ALTER VIEW name SET AUTHORIZATION ( user | USER user | ROLE role )
Copy to clipboard

Description#

Change the definition of an existing view.

Examples#

Rename view people to users:

ALTER VIEW people RENAME TO users
Copy to clipboard

Change owner of VIEW people to user alice:

ALTER VIEW people SET AUTHORIZATION alice
Copy to clipboard

See also#

CREATE VIEW