Re: Gaps in PK sequence numbers [RESOLVED]

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Gaps in PK sequence numbers [RESOLVED]
Дата
Msg-id CAKFQuwYM7c3PLfp=ExueegJdT4GjXCx9iaaco-x1vri8qF0tyg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Gaps in PK sequence numbers [RESOLVED]  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
On Monday, June 10, 2024, Rich Shepard <rshepard@appl-ecosys.com> wrote:

Is there a way to reset the sequence to the maximum
number +1? I don't recall seeing this in the postgres docs but will look
again.


setval

The bigint argument can be computed from a query.

David J.

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

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: Re: Gaps in PK sequence numbers [RESOLVED]
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Does trigger only accept functions?