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

Commit f458c90

Browse files
committed
Add C comment about why we send cache invalidation messages for
session-local objects.
1 parent 56a9ed9 commit f458c90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/utils/cache/inval.c

+4
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,10 @@ ProcessCommittedInvalidationMessages(SharedInvalidationMessage *msgs,
812812
* about CurrentCmdInvalidMsgs too, since those changes haven't touched
813813
* the caches yet.
814814
*
815+
* We still send invalidation messages for session-local objects to other
816+
* backends because, while other backends cannot see any tuples, they can
817+
* drop tables that are session-local to another session.
818+
*
815819
* In any case, reset the various lists to empty. We need not physically
816820
* free memory here, since TopTransactionContext is about to be emptied
817821
* anyway.

0 commit comments

Comments
 (0)