Re: [DOCS] CREATE SEQUENCE minvalue for descending sequence

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [DOCS] CREATE SEQUENCE minvalue for descending sequence
Дата
Msg-id CAB7nPqQCUFi2gFYVkEz44aPwyd7ZtrJLa39MrkzEhSEs9RjCdg@mail.gmail.com
обсуждение исходный текст
Ответ на [DOCS] CREATE SEQUENCE minvalue for descending sequence  (Klemens Eisenstecken <klemens.eisenstecken@gmail.com>)
Ответы Re: [DOCS] CREATE SEQUENCE minvalue for descending sequence  (Klemens Eisenstecken <klemens.eisenstecken@gmail.com>)
Список pgsql-docs
On Wed, Aug 16, 2017 at 10:00 PM, Klemens Eisenstecken
<klemens.eisenstecken@gmail.com> wrote:
> Hello,
>
> while reading your documentation about create sequence I found that you
> mention the minvalue for a descending sequence is -2^63-1.
>
> But as far as I know the minvalue of long is -2^63+1.
>
> The mentioned documentation is at:
> https://www.postgresql.org/docs/9.6/static/sql-createsequence.html

Logically the minimum value of long is -2^63, the maximum being 2^63 -
1, but as you say the default minvalue of a descending sequence is
-2^63 + 1, so the docs are wrong. Note that Postgres has changed this
idiotic minimal value behavior in 10, using now the real minimum value
of the types used with a sequence.
--
Michael

Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [DOCS] Dead link for 'DocBook XSL Stylesheets'
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: [DOCS] Default names for CRL and CA files in the backend