1DISCARD(7)              PostgreSQL 9.2.24 Documentation             DISCARD(7)
2
3
4

NAME

6       DISCARD - discard session state
7

SYNOPSIS

9       DISCARD { ALL | PLANS | TEMPORARY | TEMP }
10

DESCRIPTION

12       DISCARD releases internal resources associated with a database session.
13       These resources are normally released at the end of the session.
14
15       DISCARD TEMP drops all temporary tables created in the current session.
16       DISCARD PLANS releases all internally cached query plans.  DISCARD ALL
17       resets a session to its original state, discarding temporary resources
18       and resetting session-local configuration changes.
19

PARAMETERS

21       TEMPORARY or TEMP
22           Drops all temporary tables created in the current session.
23
24       PLANS
25           Releases all cached query plans.
26
27       ALL
28           Releases all temporary resources associated with the current
29           session and resets the session to its initial state. Currently,
30           this has the same effect as executing the following sequence of
31           statements:
32
33               SET SESSION AUTHORIZATION DEFAULT;
34               RESET ALL;
35               DEALLOCATE ALL;
36               CLOSE ALL;
37               UNLISTEN *;
38               SELECT pg_advisory_unlock_all();
39               DISCARD PLANS;
40               DISCARD TEMP;
41

NOTES

43       DISCARD ALL cannot be executed inside a transaction block.
44

COMPATIBILITY

46       DISCARD is a PostgreSQL extension.
47
48
49
50PostgreSQL 9.2.24                 2017-11-06                        DISCARD(7)
Impressum