SELECT last_value FROM sequence_name;

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: hans(at)matfyz(dot)cz
Subject: SELECT last_value FROM sequence_name;
Date: 2021-04-12 08:47:22
Message-ID: 161821724293.693.5725505698469449366@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Dave Cramer 2021-04-12 09:10:53 Re: SELECT last_value FROM sequence_name;
Previous Message PG Doc comments form 2021-04-11 19:40:48 repeated info in sections 4.1.1, 4.1.2.3