projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b7396f
)
improve comment
pgfruit
author
Robert Haas
<rhaas@postgresql.org>
Mon, 10 Jul 2023 14:22:21 +0000
(10:22 -0400)
committer
Robert Haas
<rhaas@postgresql.org>
Mon, 10 Jul 2023 14:22:21 +0000
(10:22 -0400)
contrib/pgfruit/pgfruit.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pgfruit/pgfruit.c
b/contrib/pgfruit/pgfruit.c
index 9a47611c660c7c24f9eb8ceca55d9aa774a39181..06e89d80193ce0174339812d50c86a88ea7684ba 100644
(file)
--- a/
contrib/pgfruit/pgfruit.c
+++ b/
contrib/pgfruit/pgfruit.c
@@
-472,7
+472,11
@@
pgfruit_reread(int nhints, int *hinted_ids)
UnlockDatabaseObject(RelationRelationId, RelationGetRelid(rel),
0, AccessExclusiveLock);
- /* We also need a snapshot. */
+ /*
+ * We must take a snapshot AFTER performing the lock waits above, so
+ * that we can be certain of seeing the changes made by any concurrent
+ * transactions for which we may have just waited.
+ */
snapshot = RegisterSnapshot(GetLatestSnapshot());
/*