Re: sequence current value

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Michael Shapiro <mshapiro51(at)gmail(dot)com>
Cc: PgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: sequence current value
Date: 2021-05-14 14:39:28
Message-ID: CA+OCxoyFeox7oMAjJzUmeF37s+E+R1B5D0o3zBZ7CUrTYU+86A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Fri, May 14, 2021 at 3:33 PM Michael Shapiro <mshapiro51(at)gmail(dot)com>
wrote:

> How does PgAdmin get the current value of a sequence when showing the
> sequence properties?
>

SELECT last_value FROM <sequence_name>;

(essentially. It gets a few other things as well)

--
Dave Page
Blog: https://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: https://www.enterprisedb.com

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Michael Shapiro 2021-05-14 16:32:23 Re: sequence current value
Previous Message Michael Shapiro 2021-05-14 14:33:18 sequence current value