uint32.patch

text/plain

Filename: uint32.patch
Type: text/plain
Part: 0
Message: Re: Improve verification of recovery_target_timeline GUC.

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/backend/access/transam/xlogrecovery.c 1 1
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c
index c0c2744d45b..fc794693442 100644
--- a/src/backend/access/transam/xlogrecovery.c
+++ b/src/backend/access/transam/xlogrecovery.c
@@ -5070,7 +5070,7 @@ check_recovery_target_timeline(char **newval, void **extra, GucSource source)
 		if (timeline < 1 || timeline > PG_UINT32_MAX)
 		{
 			GUC_check_errdetail("\"%s\" must be between %u and %u.",
-								"recovery_target_timeline", 1, UINT_MAX);
+								"recovery_target_timeline", 1, PG_UINT32_MAX);
 			return false;
 		}
 	}