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

Commit 507838e

Browse files
committed
[refer #PGPRO-2887] Prohibit autovacuum for global temporary tables
1 parent 8c65830 commit 507838e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,8 +2241,7 @@ do_autovacuum(void)
22412241
*/
22422242
if (!((classForm->relkind == RELKIND_RELATION ||
22432243
classForm->relkind == RELKIND_MATVIEW) &&
2244-
(classForm->relpersistence == RELPERSISTENCE_TEMP ||
2245-
classForm->relpersistence == RELPERSISTENCE_SESSION)))
2244+
classForm->relpersistence == RELPERSISTENCE_TEMP))
22462245
{
22472246
UnlockRelationOid(relid, AccessExclusiveLock);
22482247
continue;

0 commit comments

Comments
 (0)