Fix thinko in autovacuum's test to skip temp tables: want to skip any
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Jan 2006 15:16:56 +0000 (15:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Jan 2006 15:16:56 +0000 (15:16 +0000)
temp table not only our own process' tables.  It's not real important
since vacuum.c will skip temp tables anyway, but might as well make the
code do what it claims to do.

src/backend/postmaster/autovacuum.c

index eb748f18409d9bcc953eb4b446ce1fd3339b989b..f455495a0055516f5031e5be9bcdbce9de78348a 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.10 2006/01/18 20:35:05 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.11 2006/01/20 15:16:56 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -635,7 +635,7 @@ do_autovacuum(PgStat_StatDBEntry *dbentry)
                 * Skip temp tables (i.e. those in temp namespaces).  We cannot safely
                 * process other backends' temp tables.
                 */
-               if (isTempNamespace(classForm->relnamespace))
+               if (isAnyTempNamespace(classForm->relnamespace))
                        continue;
 
                relid = HeapTupleGetOid(tuple);