From 839f52d72f0fa0d1e8169905b7fedc5c5de67eaf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 20 Jan 2006 15:17:13 +0000 Subject: [PATCH] Fix thinko in autovacuum's test to skip temp tables: want to skip any 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index ee54e27349..636943dfeb 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -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); -- 2.39.5