Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    493f7260
    Renumber SnapshotNow and the other special snapshot codes so that · 493f7260
    Tom Lane authored
    ((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.
    493f7260
    History
    Renumber SnapshotNow and the other special snapshot codes so that
    Tom Lane authored
    ((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.