From 46651ce6fe013220ed397add242004d764fc0153 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:15:05 +0200 Subject: Adding upstream version 14.5. Signed-off-by: Daniel Baumann --- doc/src/sgml/ref/discard.sgml | 118 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 doc/src/sgml/ref/discard.sgml (limited to 'doc/src/sgml/ref/discard.sgml') diff --git a/doc/src/sgml/ref/discard.sgml b/doc/src/sgml/ref/discard.sgml new file mode 100644 index 0000000..bf44c52 --- /dev/null +++ b/doc/src/sgml/ref/discard.sgml @@ -0,0 +1,118 @@ + + + + + DISCARD + + + + DISCARD + 7 + SQL - Language Statements + + + + DISCARD + discard session state + + + + +DISCARD { ALL | PLANS | SEQUENCES | TEMPORARY | TEMP } + + + + + 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. + + + + + Parameters + + + + + PLANS + + + Releases all cached query plans, forcing re-planning to occur + the next time the associated prepared statement is used. + + + + + + SEQUENCES + + + Discards all cached sequence-related state, + including currval()/lastval() + information and any preallocated sequence values that have not + yet been returned by nextval(). + (See for a description of + preallocated sequence values.) + + + + + + TEMPORARY or TEMP + + + Drops all temporary tables created in the current session. + + + + + + ALL + + + Releases all temporary resources associated with the current + session and resets the session to its initial state. + Currently, this has the same effect as executing the following sequence + of statements: + +CLOSE ALL; +SET SESSION AUTHORIZATION DEFAULT; +RESET ALL; +DEALLOCATE ALL; +UNLISTEN *; +SELECT pg_advisory_unlock_all(); +DISCARD PLANS; +DISCARD TEMP; +DISCARD SEQUENCES; + + + + + + + + + Notes + + + DISCARD ALL cannot be executed inside a transaction block. + + + + + Compatibility + + + DISCARD is a PostgreSQL extension. + + + -- cgit v1.2.3