]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix constant in error message for recovery_target_timeline
authorMichael Paquier <michael@paquier.xyz>
Fri, 20 Feb 2026 07:17:57 +0000 (16:17 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 20 Feb 2026 07:17:57 +0000 (16:17 +0900)
The intention was to use PG_UINT32_MAX, not UINT_MAX.  Let's be
consistent and use the same constant.

Thinko in fd7d7b719137.

Author: David Steele <david@pgbackrest.org>
Discussion: https://postgr.es/m/aZfXO97jSQaTTlfD@paquier.xyz

src/backend/access/transam/xlogrecovery.c

index c0c2744d45bc171de09198bda379989cdf77be37..fc79469344226d7d4eb89e30c3f935e2b630408c 100644 (file)
@@ -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;
                }
        }