SELECT last_value FROM sequence_name;

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема SELECT last_value FROM sequence_name;
Дата
Msg-id 161821724293.693.5725505698469449366@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: SELECT last_value FROM sequence_name;
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/functions-sequence.html
Description:

Please add Note, how to get the (global) last value:
SELECT last_value FROM sequence_name;
https://dba.stackexchange.com/questions/3281/how-do-i-use-currval-in-postgresql-to-get-the-last-inserted-id

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