Content-Length: 274750 | pFad | http://github.com/postgrespro/postgres/commit/413d492d32ed2cd824f8e26804de5ff54a7a2e98

00 Fix thinko in autovacuum's test to skip temp tables: want to skip any · postgrespro/postgres@413d492 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/413d492d32ed2cd824f8e26804de5ff54a7a2e98

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy