public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Rich Shepard <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Gaps in PK sequence numbers [RESOLVED]
Date: Mon, 10 Jun 2024 18:23:58 -0700
Message-ID: <CAKFQuwYM7c3PLfp=ExueegJdT4GjXCx9iaaco-x1vri8qF0tyg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>

On Monday, June 10, 2024, Rich Shepard <[email protected]> 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.
>

 https://www.postgresql.org/docs/current/functions-sequence.html

setval

The bigint argument can be computed from a query.

David J.


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Gaps in PK sequence numbers [RESOLVED]
  In-Reply-To: <CAKFQuwYM7c3PLfp=ExueegJdT4GjXCx9iaaco-x1vri8qF0tyg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox