Renumber SnapshotNow and the other special snapshot codes so that
Tom Lane <tgl@sss.pgh.pa.us>
Renumber SnapshotNow and the other special snapshot codes so that ((Snapshot) NULL) can no longer be confused with a valid snapshot, as per my recent suggestion. Define a macro InvalidSnapshot for 0. Use InvalidSnapshot instead of SnapshotAny as the do-nothing special case for heap_update and heap_delete crosschecks; this seems a little cleaner even though the behavior is really the same.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +11 −9 |
| src/backend/commands/async.c | modified | +2 −2 |
| src/backend/executor/execMain.c | modified | +2 −2 |
| src/backend/executor/execUtils.c | modified | +2 −2 |
| src/include/utils/tqual.h | modified | +21 −5 |