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:17:13 +0000 (15:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Jan 2006 15:17:13 +0000 (15:17 +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 ee54e2734973f7c6e5ac016ee09f7b1c204dbe4a..636943dfebff742d19ecf31d81ecc068fabe1ff5 100644 (file)
@@ -625,7 +625,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);