We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DISCARD ALL
postgres=# create temp table tt (id int); CREATE TABLE postgres=# select * from tt; id ---- (0 rows) postgres=# \d List of relations Schema | Name | Type | Owner --------------------+---------------------+-------+---------- __sys__ | binlog_position | table | postgres __sys__ | current_setting | table | postgres performance_schema | global_status | table | postgres __sys__ | persistent_variable | table | postgres __sys__ | pg_replication_lsn | table | postgres __sys__ | pg_stat_replication | table | postgres (6 rows) postgres=# insert into tt values (1), (2); INSERT 0 2 postgres=# select * from tt; id ---- 1 2 (2 rows) postgres=# postgres=# discard all; DISCARD ALL postgres=# select * from tt; id ---- 1 2 (2 rows) postgres=# ^D\q % PGPASSWORD=postgres psql -h 127.0.0.1 -p 25432 -U postgres -d postgres psql (17.0, server 15.0) Type "help" for help. postgres=# select * from tt; id ---- 1 2 (2 rows) postgres=# \d List of relations Schema | Name | Type | Owner --------------------+---------------------+-------+---------- __sys__ | binlog_position | table | postgres __sys__ | current_setting | table | postgres performance_schema | global_status | table | postgres __sys__ | persistent_variable | table | postgres __sys__ | pg_replication_lsn | table | postgres __sys__ | pg_stat_replication | table | postgres (6 rows)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: