Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 413d492

Browse files
committed
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.
1 parent cd5d464 commit 413d492

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.10 2006/01/18 20:35:05 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.11 2006/01/20 15:16:56 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -635,7 +635,7 @@ do_autovacuum(PgStat_StatDBEntry *dbentry)
635635
* Skip temp tables (i.e. those in temp namespaces). We cannot safely
636636
* process other backends' temp tables.
637637
*/
638-
if (isTempNamespace(classForm->relnamespace))
638+
if (isAnyTempNamespace(classForm->relnamespace))
639639
continue;
640640

641641
relid = HeapTupleGetOid(tuple);

0 commit comments

Comments
 (0)