DISCARD

A utility command for releasing session resources

DISCARD is a utility command for releasing resources associated with a session.

DISCARD was added in PostgreSQL 8.3.

Change history

Note that the DISCARD command was initially implemented as variants of the RESET command, but changed to DISCARD ... in commit 16efdb5e).

  • PostgreSQL documentation: DISCARD

Categories

Utility command

See also

DEALLOCATE, RESET