Re: [BUGS] General Bug Report: TEMP TABLES becomes permanent CATALOG TABLES - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: [BUGS] General Bug Report: TEMP TABLES becomes permanent CATALOG TABLES
Date
Msg-id 199907080306.XAA23971@candle.pha.pa.us
Whole thread Raw
In response to General Bug Report: TEMP TABLES becomes permanent CATALOG TABLES  (Unprivileged user <nobody>)
List pgsql-bugs
> Problem Description:  -------------------- When you execute a
> wrong SQL command after create a TEMP TABLE, postgres backend
> doesn't drop this table after connection ends. We can't drop
> pg_temp.PID.N with "drop table" command because it is a system
> catalog table. So, we had to dumpall the database, edit db.out
> file to erase lines of pg_temp??? create table and reload it
> again.
>
> --------------------------------------------------------------------------
>
> Test Case:  ---------- psql mydb mydb=> select * into temp table
> TMP from anytable; mydb=> drop table invalidTable; mydb=> \q
> psql mydb mydb=> \dS    --> You will see a new permanent system
> table.

This will be fixed in 6.5.1, due out next week.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [BUGS] General Bug Report: Files greater than 1 GB are created while sorting
Next
From: secret
Date:
Subject: Re: [BUGS] General Bug Report: GROUP BY with NULL not done properly(Oracle8& DB/2 do this completely different)