Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
2c2ecddc
Commit
2c2ecddc
authored
7 years ago
by
Simon Riggs
Browse files
Options
Downloads
Patches
Plain Diff
Mention pg_index changes also cause relcache invalidation
Amit Langote, additional line by me
parent
7a3e8d7b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/utils/cache/inval.c
+4
-3
4 additions, 3 deletions
src/backend/utils/cache/inval.c
with
4 additions
and
3 deletions
src/backend/utils/cache/inval.c
+
4
−
3
View file @
2c2ecddc
...
...
@@ -51,9 +51,9 @@
* PrepareToInvalidateCacheTuple() routine provides the knowledge of which
* catcaches may need invalidation for a given tuple.
*
* Also, whenever we see an operation on a pg_class
or
pg_attribute
tuple,
* we register a relcache flush operation for the relation
described by that
*
tuple
.
* Also, whenever we see an operation on a pg_class
,
pg_attribute
, or
*
pg_index tuple,
we register a relcache flush operation for the relation
*
described by that tuple (as specified in CacheInvalidateHeapTuple())
.
*
* We keep the relcache flush requests in lists separate from the catcache
* tuple flush requests. This allows us to issue all the pending catcache
...
...
@@ -1132,6 +1132,7 @@ CacheInvalidateHeapTuple(Relation relation,
/*
* Now, is this tuple one of the primary definers of a relcache entry?
* See comments in file header for deeper explanation.
*
* Note we ignore newtuple here; we assume an update cannot move a tuple
* from being part of one relcache entry to being part of another.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment