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

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy