Vacuuming temporary tables
Seems temporary tables can not be vacuumed. It is because vacuum.c does
a sequential scan of the pg_class table, rather than using the cache.
Should this be fixed?
test=> create temporary table test (x integer);
CREATE
test=> vacuum test;
NOTICE: Vacuum: table not found
VACUUM
--
Bruce Momjian | http://www.op.net/~candle
pgman@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
On Thu, Apr 06, 2000 at 01:10:12PM -0400, Bruce Momjian wrote:
Seems temporary tables can not be vacuumed. It is because vacuum.c does
a sequential scan of the pg_class table, rather than using the cache.
Should this be fixed?Do they show up in psql with \d? I only ask because in 6.5.0, they don't,
but psql's been completely rewritten for 7.0.
No, they do not. I am fixing VACUUM for temporary tables now. The
reason they don't show up is because the cache is not used by psql to
fetch information. It goes right into pg_class, which has only the
pgtemp* name.
--
Bruce Momjian | http://www.op.net/~candle
pgman@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
Import Notes
Reply to msg id not found: 20000406124759.F9307@rice.edu | Resolved by subject fallback