DROP_VIEW(7pg16)
π NAME π
okay so this is the DROP VIEW(7) page, and the command on the menu is DROP_VIEW β remove a view. Welcome bestie, weβre gonna get you comfy with it. β¨
β¨ SYNOPSIS β¨
The whole shape of the command is:
DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
π¦ DESCRIPTION π¦
DROP VIEW drops an existing view. Thatβs literally the main-character job. To execute this command you must be the owner of the view. No cap. π
πΈ PARAMETERS πΈ
IF EXISTSβ do not throw an error if the view does not exist. In this case, a notice is issued.nameβ the name (optionally schema-qualified) of the view to remove.CASCADEβ automatically drop objects that depend on the view (such as other views), and in turn all objects that depend on those objects (see Section 5.14).RESTRICTβ refuse to drop the view if any objects depend on it. This is the default.
π EXAMPLES π
This command will remove the view called kinds:
DROP VIEW kinds;
π COMPATIBILITY π
This command conforms to the SQL standard, except that the standard only allows one view to be dropped per command, and apart from the IF EXISTS option, which is a PostgreSQL extension. Slay, but make it standards-compliant-ish. π«Ά
π SEE ALSO π
ALTER VIEW (ALTER_VIEW(7))CREATE VIEW (CREATE_VIEW(7))
okay thatβs the whole page, bestie. This iconic manual page is from PostgreSQL 16.15, dated 2026, and itβs the DROP VIEW(7) page β periodt. π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms