From 0bc1207aeb3de951bf95a9e9899b1256216d65f5 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 23 Jan 2017 14:00:58 -0500 Subject: Fix default minimum value for descending sequences For some reason that is lost in history, a descending sequence would default its minimum value to -2^63+1 (-PG_INT64_MAX) instead of -2^63 (PG_INT64_MIN), even though explicitly specifying a minimum value of -2^63 would work. Fix this inconsistency by using the full range by default. Reported-by: Daniel Verite Reviewed-by: Michael Paquier --- src/include/pg_config_manual.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/include/pg_config_manual.h') diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h index c07907145a6..f3b35297d18 100644 --- a/src/include/pg_config_manual.h +++ b/src/include/pg_config_manual.h @@ -50,12 +50,6 @@ */ #define PARTITION_MAX_KEYS 32 -/* - * Set the upper and lower bounds of sequence values. - */ -#define SEQ_MAXVALUE PG_INT64_MAX -#define SEQ_MINVALUE (-SEQ_MAXVALUE) - /* * When we don't have native spinlocks, we use semaphores to simulate them. * Decreasing this value reduces consumption of OS resources; increasing it -- cgit v1.2.3