DROP_CAST(7pg16)
β¨ NAME β¨
okay so bestie, this is DROP_CAST, aka page 7pg16 in the PostgreSQL 16.15 docs, and itβs literally the βremove a castβ page. thatβs the whole assignment: a previously defined cast is getting removed. no cap. π
π SYNOPSIS π
DROP CAST [ IF EXISTS ] (source_type AS target_type) [ CASCADE | RESTRICT ]
itβs giving βshort, sharp, and ready to un-cast.β β¨
π DESCRIPTION π
DROP CAST removes a cast that was previously defined. fr fr, thatβs the main character move. π«Ά
To be able to drop a cast, you must own the source or the target data type. These are the same privileges that are required to create a cast β same ownership vibe check, different command. π
π§ PARAMETERS π§
IF EXISTSβ do not throw an error if the cast does not exist. A notice is issued in this case. so itβs a gentle βbestie, itβs already goneβ situation, not a whole error moment. πsource_typeβ the name of the source data type of the cast. πtarget_typeβ the name of the target data type of the cast. π¦CASCADE,RESTRICTβ these key words do not have any effect, since there are no dependencies on casts. theyβre literally just standing there, looking iconic, doing nothing. π
π EXAMPLES π
want to drop the cast from type text to type int? iconic, hereβs the line:
DROP CAST (text AS int);
β COMPATIBILITY β
The DROP CAST command conforms to the SQL standard. periodt. π
π¦ SEE ALSO π¦
CREATE CAST(CREATE_CAST(7)) β the origin story, bestie. go read it. π
xoxo, this page comes from PostgreSQL 16.15, dated 2026, and itβs literally page DROP CAST(7). mwah π«Ά
π¦ 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