Discards the session state.
DISCARD { ALL | PLANS | TEMPORARY | TEMP }
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. DISCARD ALL
is not supported by Greenplum Database.
nextval()
. (See
CREATE SEQUENCE
for a description of preallocated sequence values.)
Releases all temporary resources associated with the current session and resets the session to its initial state.
Note: Greenplum Database does not support DISCARD ALL
and returns a notice message if you attempt to run the command.
As an alternative, you can the run following commands to release temporary session resources:
SET SESSION AUTHORIZATION DEFAULT;
RESET ALL;
DEALLOCATE ALL;
CLOSE ALL;
SELECT pg_advisory_unlock_all();
DISCARD PLANS;
DISCARD SEQUENCES;
DISCARD TEMP;
DISCARD
is a Greenplum Database extension.
Parent topic: SQL Command Reference