mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-11 14:37:32 +08:00
The old coding was using a regular snapshot, referenced elsewhere, that was subject to having its command counter updated. Fix by creating a private copy of the snapshot exclusively for the cursor. Backpatch to 8.4, which is when the bug was introduced during the snapshot management rewrite.