Prepare, Execute, And Deallocate Statements
In PostgreSQL, you can prepare a named statement to be executed later using prepare
.
These statements are kept around for the duration of the session. To see the available statements, check out the pg_prepared_statements
view.
To run a prepared statement, use execute
with the name of the statement and any arguments.
You can also delete a statement with deallocate
if you'd like.
Last updated