DEALLOCATE(7)

πŸ“¦ version 17.11, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay so bestie, welcome to DEALLOCATE(7) from the PostgreSQL 17.11 Documentation πŸ’… This page is literally about deallocating a prepared statement β€” like, saying bye-bye to it in the cleanest way possible 🫢


✨ SYNOPSIS ✨

DEALLOCATE [ PREPARE ] { name | ALL }

🌸 DESCRIPTION 🌸

DEALLOCATE is used to deallocate a previously prepared SQL statement. If you do not explicitly deallocate a prepared statement, it is deallocated when the session ends β€” no cap, session cleanup handles it 😭✨

For more information on prepared statements, see PREPARE(7). iykyk πŸ¦‹


πŸŽ€ PARAMETERS πŸŽ€

  • PREPARE β€” this key word is ignored. Yep, it’s just there doing nothing, bestie πŸ’€
  • name β€” the name of the prepared statement to deallocate. This is how you pick which one gets the goodbye πŸ‘‹
  • ALL β€” deallocate all prepared statements. not me clearing the whole group chat πŸ”₯

πŸ¦‹ COMPATIBILITY πŸ¦‹

The SQL standard includes a DEALLOCATE statement, but it is only for use in embedded SQL. So it’s giving standard-adjacent but with a very specific vibe, iykyk πŸ’…


🌈 SEE ALSO 🌈


That’s the whole page, bestie β€” brought to you by PostgreSQL 17.11, dated 2026 πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from