Skip to content
New issue

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

[pg] DISCARD ALL does not remove the temporary tables #204

Open
VWagen1989 opened this issue Nov 22, 2024 · 0 comments
Open

[pg] DISCARD ALL does not remove the temporary tables #204

VWagen1989 opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@VWagen1989
Copy link
Contributor

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)
@VWagen1989 VWagen1989 added the bug Something isn't working label Nov 22, 2024
@VWagen1989 VWagen1989 changed the title [pg] DISCARD ALL does not remove the temporary tables [pg] DISCARD ALL does not remove the temporary tables Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant