* Implement slower/larger portions of TestForOldSnapshot * * Smaller/faster portions are put inline, but the entire set of logic is too * big for that. */
| 5143 | * big for that. |
| 5144 | */ |
| 5145 | void |
| 5146 | TestForOldSnapshot_impl(Snapshot snapshot, Relation relation) |
| 5147 | { |
| 5148 | if (RelationAllowsEarlyPruning(relation) |
| 5149 | && (snapshot)->whenTaken < GetOldSnapshotThresholdTimestamp()) |
| 5150 | ereport(ERROR, |
| 5151 | (errcode(ERRCODE_SNAPSHOT_TOO_OLD), |
| 5152 | errmsg("snapshot too old"))); |
| 5153 | } |
| 5154 | |
| 5155 | /* This is used by PageGetLSN(). */ |
| 5156 | #ifdef USE_ASSERT_CHECKING |
no test coverage detected