Thread: Vacuuming temporary tables

Vacuuming temporary tables

From
Bruce Momjian
Date:
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);CREATEtest=> vacuum test;NOTICE:  Vacuum: table not
foundVACUUM

--  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,
Pennsylvania19026
 


Re: Vacuuming temporary tables

From
Bruce Momjian
Date:
> 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,
Pennsylvania19026