1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-27 22:56:53 +03:00

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.
This commit is contained in:
Tom Lane 2006-01-20 15:17:13 +00:00
parent 936433ba53
commit 517056bd08

View File

@ -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);