DROP_SERVER(7pg15)
β¨ NAME β¨
okay so DROP SERVER β remove a foreign server descriptor. This is the DROP_SERVER(7pg15) page from the PostgreSQL 15.19 Documentation, bestie, and it's literally here to help you drop that descriptor. π
π«Ά SYNOPSIS π«Ά
DROP SERVER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
π DESCRIPTION π
DROP SERVER removes an existing foreign server descriptor. To execute this command, the current user must be the owner of the server. no cap, ownership is the vibe check here. π
π PARAMETERS π
IF EXISTSβ do not throw an error if the server does not exist. A notice is issued in this case, so it's giving "gentle heads-up" instead of chaos. πnameβ the name of an existing server.CASCADEβ automatically drop objects that depend on the server (such as user mappings), and in turn all objects that depend on those objects (see Section 5.14). it's a whole chain reaction, bestie. π₯RESTRICTβ refuse to drop the server if any objects depend on it. This is the default. so if you don't say anything, it's lowkey protective. π‘οΈ
πΈ EXAMPLES πΈ
Drop a server foo if it exists:
DROP SERVER IF EXISTS foo;
π COMPATIBILITY π
DROP SERVER conforms to ISO/IEC 9075-9 (SQL/MED). The IF EXISTS clause is a PostgreSQL extension. periodt. β¨
π¦ SEE ALSO π¦
CREATE SERVER(CREATE_SERVER(7))ALTER SERVER(ALTER_SERVER(7))
okay bye bestie β this slay little page is from PostgreSQL 15.19, dated 2026. π πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-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