I already create & use prepared statements by utilizing the libpq (of PostgreSQL). I am wondering if there is a way to delete a prepared statement without disconnecting the database? Or the best way to achieve this is to reconnect & re-prepare?
I am using the libpq of PostgreSQL version 8.4. I searched the 9.2 documentation but could not find anything related to this...
According to the documentation,
DEALLOCATEis the only way to delete a prepared statement, emphasis added:Presumably they did not bother to expose a C function for this because this would be as simple as: