postgresql_16:7.1.99.1 Description
PostgreSQL 16 > Reference > SQL Commands > DISCARD > Description
DISCARD releases internal resources associated with a database session. This command is useful for partially or fully resetting the session's state. There are several subcommands to release different types of resources; the DISCARD ALL variant subsumes all the others, and also resets additional state.