mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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 <daniel@manitou-mail.org> Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@ -133,7 +133,7 @@ SELECT * FROM <replaceable>name</replaceable>;
|
||||
the minimum value a sequence can generate. If this clause is not
|
||||
supplied or <option>NO MINVALUE</option> is specified, then
|
||||
defaults will be used. The defaults are 1 and
|
||||
-2<superscript>63</>-1 for ascending and descending sequences,
|
||||
-2<superscript>63</> for ascending and descending sequences,
|
||||
respectively.
|
||||
</para>
|
||||
</listitem>
|
||||
|
Reference in New Issue
Block a user