mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Add C comment about why we send cache invalidation messages for
session-local objects.
This commit is contained in:
parent
56a9ed92b6
commit
f458c90bff
4
src/backend/utils/cache/inval.c
vendored
4
src/backend/utils/cache/inval.c
vendored
@ -812,6 +812,10 @@ ProcessCommittedInvalidationMessages(SharedInvalidationMessage *msgs,
|
|||||||
* about CurrentCmdInvalidMsgs too, since those changes haven't touched
|
* about CurrentCmdInvalidMsgs too, since those changes haven't touched
|
||||||
* the caches yet.
|
* the caches yet.
|
||||||
*
|
*
|
||||||
|
* We still send invalidation messages for session-local objects to other
|
||||||
|
* backends because, while other backends cannot see any tuples, they can
|
||||||
|
* drop tables that are session-local to another session.
|
||||||
|
*
|
||||||
* In any case, reset the various lists to empty. We need not physically
|
* In any case, reset the various lists to empty. We need not physically
|
||||||
* free memory here, since TopTransactionContext is about to be emptied
|
* free memory here, since TopTransactionContext is about to be emptied
|
||||||
* anyway.
|
* anyway.
|
||||||
|
Loading…
Reference in New Issue
Block a user