diff options
author | Bruce Momjian <bruce@momjian.us> | 2011-09-05 22:08:14 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2011-09-05 22:09:02 -0400 |
commit | f458c90bff45ecae91fb55ef2b938af37d977af3 (patch) | |
tree | bf883c4ca4c08396ccb7c25bcebab108d27a69a4 /src | |
parent | 56a9ed92b664af191040d848ca923fb3234671ee (diff) | |
download | postgresql-f458c90bff45ecae91fb55ef2b938af37d977af3.tar.gz postgresql-f458c90bff45ecae91fb55ef2b938af37d977af3.zip |
Add C comment about why we send cache invalidation messages for
session-local objects.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/cache/inval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c index 337fe64e10c..98dc3adf30c 100644 --- a/src/backend/utils/cache/inval.c +++ b/src/backend/utils/cache/inval.c @@ -812,6 +812,10 @@ ProcessCommittedInvalidationMessages(SharedInvalidationMessage *msgs, * about CurrentCmdInvalidMsgs too, since those changes haven't touched * 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 * free memory here, since TopTransactionContext is about to be emptied * anyway. |