forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9f4f0a0
committed
Fix incorrect logic in HaveRegisteredOrActiveSnapshot().
This function gave the wrong answer when there's more than oneRegisteredSnapshots entry, whether or not any of them is theCatalogSnapshot. This leads to assertion failure in some scenariosinvolving fetching toasted data using a cursor. (As per discussion,I'm dubious that this is the right contract to be enforcing at all;but it surely doesn't help to be enforcing it incorrectly.)Fetching toasted data using a cursor is evidently under-tested,so add a test case too.Per report from Erik Rijkers. This is new code, so no need forback-patch.Discussion:https://postgr.es/m/dc9dd229-ed30-6c62-4c41-d733ffff776b@xs4all.nl1 parenta17fd67 commit9f4f0a0
File tree
3 files changed
+52
-3
lines changed- src
- backend/utils/time
- test/regress
- expected
- sql
3 files changed
+52
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1646 | 1646 |
| |
1647 | 1647 |
| |
1648 | 1648 |
| |
1649 |
| - | |
1650 |
| - | |
| 1649 | + | |
| 1650 | + | |
1651 | 1651 |
| |
1652 | 1652 |
| |
1653 |
| - | |
| 1653 | + | |
1654 | 1654 |
| |
1655 | 1655 |
| |
1656 | 1656 |
| |
|
0 commit comments
Comments
(0)