summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorPeter Eisentraut2017-01-23 19:00:58 +0000
committerPeter Eisentraut2017-01-23 19:00:58 +0000
commit0bc1207aeb3de951bf95a9e9899b1256216d65f5 (patch)
treed6b29dbd49dec2ec22b65f0324924843c6a9bc7d /src/include
parent46d482814cd4a9c474540a9c4f040ce1cd514f46 (diff)
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 <[email protected]> Reviewed-by: Michael Paquier <[email protected]>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/pg_config_manual.h6
1 files changed, 0 insertions, 6 deletions
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
@@ -51,12 +51,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
* may improve performance, but supplying a real spinlock implementation is