Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/pg_resetwal/pg_resetwal.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c
index 04567f349d6..3ae3fc06df2 100644
--- a/src/bin/pg_resetwal/pg_resetwal.c
+++ b/src/bin/pg_resetwal/pg_resetwal.c
@@ -211,13 +211,13 @@ main(int argc, char *argv[])
exit(1);
}
- if (set_oldest_commit_ts_xid < 2 &&
- set_oldest_commit_ts_xid != 0)
- pg_fatal("transaction ID (-c) must be either 0 or greater than or equal to 2");
+ if (set_oldest_commit_ts_xid < FirstNormalTransactionId &&
+ set_oldest_commit_ts_xid != InvalidTransactionId)
+ pg_fatal("transaction ID (-c) must be either %u or greater than or equal to %u", InvalidTransactionId, FirstNormalTransactionId);
- if (set_newest_commit_ts_xid < 2 &&
- set_newest_commit_ts_xid != 0)
- pg_fatal("transaction ID (-c) must be either 0 or greater than or equal to 2");
+ if (set_newest_commit_ts_xid < FirstNormalTransactionId &&
+ set_newest_commit_ts_xid != InvalidTransactionId)
+ pg_fatal("transaction ID (-c) must be either %u or greater than or equal to %u", InvalidTransactionId, FirstNormalTransactionId);
break;
case 'o':