aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-01-20 15:17:13 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-01-20 15:17:13 +0000
commit517056bd08e6f0b12151d6ee68de56ca7aa2c36a (patch)
tree34a8071c40a02c90fbafe1440ee33d75ad0b7382 /src
parent936433ba53998cd2d87399d894f00120138c9cdd (diff)
downloadpostgresql-517056bd08e6f0b12151d6ee68de56ca7aa2c36a.tar.gz
postgresql-517056bd08e6f0b12151d6ee68de56ca7aa2c36a.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/autovacuum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c
index e1e1735bcfc..83a359ed4d0 100644
--- a/src/backend/postmaster/autovacuum.c
+++ b/src/backend/postmaster/autovacuum.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.5.2.4 2006/01/18 20:35:16 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.5.2.5 2006/01/20 15:17:13 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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);