DEALLOCATE(7)
π DEALLOCATE β the postgres manual, but make it a group chat π
okay so real talk, this is DEALLOCATE(7) from the PostgreSQL 14.24 docs and it's genuinely one of the shortest ones bestie, so we're gonna get through it fast and you're gonna understand it fr fr π«Ά
β¨ NAME β¨
DEALLOCATE β deallocate a prepared statement. that's it. that's the whole vibe. you're cleaning up after yourself, main character energy πΈ
π SYNOPSIS π
DEALLOCATE [ PREPARE ] { name | ALL }
look at her. she's gorgeous. PREPARE is optional and square-bracketed (iykyk), and then you either name your statement or you just say ALL and nuke the whole collection π
π¦ DESCRIPTION π¦
so DEALLOCATE is what you use to deallocate a previously prepared SQL statement. like, you prepared it earlier with PREPARE, and now you're saying "okay we're done here, thanks for your service" π
and lowkey here's the thing β if you do not explicitly deallocate a prepared statement, it gets deallocated when the session ends. so the universe handles it for you eventually. but ngl, being explicit is the slay option β¨
for more info on prepared statements, go see PREPARE(7). she has lore.
π PARAMETERS π
PREPAREβ okay so this keyword? it's ignored. literally ignored. it does nothing. it's just there. aesthetic only π. don't worry about her.nameβ the name of the prepared statement to deallocate. you know, the one you gave a cute little name to earlier πALLβ deallocate all prepared statements. every single one. no survivors. periodt π₯
π COMPATIBILITY π
the SQL standard does include a DEALLOCATE statement, but heads up β it's only for use in embedded SQL. so like, don't show up expecting the standard version to match exactly, bestie π
β SEE ALSO β
like the whole friend group honestly. EXECUTE(7) runs it, PREPARE(7) makes it, DEALLOCATE says byeee π§
π quick vibe check reminder: no explicit deallocation just means the session ending handles it for you. that's the one caveat and it's in the original, so i'm telling you. no cap.
and that's the page!! brought to you by PostgreSQL 14.24, dated 2026, with all the love in the world π go forth and deallocate responsibly, bestie, you're gonna do amazing ππ β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-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