DEALLOCATE(7)
π DEALLOCATE(7) π
okay bestie, welcome to the DEALLOCATE(7) page from the PostgreSQL 16.15 Documentation β¨ this one is short, sweet, and here to help you clean up your prepared statements π
π NAME π
DEALLOCATE β deallocate a prepared statement π«Ά
β¨ SYNOPSIS β¨
DEALLOCATE [ PREPARE ] { name | ALL }
πΈ DESCRIPTION πΈ
DEALLOCATE is literally the command you use to deallocate a previously prepared SQL statement π it's giving cleanup era, no cap.
If you do not explicitly deallocate a prepared statement, it gets deallocated when the session ends π so like, it won't just vibe forever.
For more info on prepared statements, go peek at PREPARE(7) π¦
π PARAMETERS π
PREPAREβ this key word is ignored π yes, bestie, it's just there and PostgreSQL is unbothered.nameβ the name of the prepared statement you want to deallocate πALLβ deallocate all prepared statements π₯ all of them, periodt.
π COMPATIBILITY π
The SQL standard includes a DEALLOCATE statement, but it is only for use in embedded SQL π
so that's the compatibility tea.
β SEE ALSO β
EXECUTE(7), PREPARE(7) π§ go check those out too, iykyk.
mwah π signed, sealed, and slayed: PostgreSQL 16.15, dated 2026, page DEALLOCATE(7) πβ¨
π¦ 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