diff options
author | Amit Kapila <akapila@postgresql.org> | 2024-04-25 10:52:34 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2024-04-25 10:52:34 +0530 |
commit | a9155efc7004a49b387f061dd90cb0b59a6d146f (patch) | |
tree | 613bc08224abc5d440fb45a33731badb42723a37 /src/backend/access/gist/gistvalidate.c | |
parent | cd0678a9bbdbaea524b2937a5c16b6d486290741 (diff) | |
download | postgresql-a9155efc7004a49b387f061dd90cb0b59a6d146f.tar.gz postgresql-a9155efc7004a49b387f061dd90cb0b59a6d146f.zip |
Fix the missing table sync due to improper invalidation handling.
We missed performing table sync if the invalidation happened while the
non-ready tables list was being prepared. This occurs because the sync
state was set to valid at the end of non-ready table list preparation
irrespective of the invalidations processed while the list is being
prepared.
Fix it by changing the boolean variable to a tri-state enum and by setting
table state to valid only if no invalidations have occurred while the list
is being prepared.
Reprted-by: Alexander Lakhin
Diagnosed-by: Alexander Lakhin
Author: Vignesh C
Reviewed-by: Hou Zhijie, Alexander Lakhin, Ajin Cherian, Amit Kapila
Backpatch-through: 15
Discussion: https://postgr.es/m/711a6afe-edb7-1211-cc27-1bef8239eec7@gmail.com
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions