Re: Reset sequence to current maximum value of rows [RESOLVED]

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Reset sequence to current maximum value of rows [RESOLVED]
Date: 2024-06-13 20:22:09
Message-ID: a128f72f-13ce-6bc0-62b6-e92e8691aea3@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 13 Jun 2024, David G. Johnston wrote:

> There is no way, in the absence of a user trigger, that the above insert
> command changed pre-existing rows. And if you cannot reproduce the
> behavior you claim to have seen I will continue to just assume you have
> faulty memory.

David,

While there might be no way that what happened could happen, did happen.

You're welcome to your opinion about my memory yet my eyes saw the results
of the select statement.

Regardless, I updated all of yesterday's company insertions so they're now
all correct (again.) Found another one I missed then and successfully
inserted it without specifying the PK field or its DEFAULT value as I
learned from Ron's reply.

Regards,

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeremy Smith 2024-06-13 20:30:32 Re: Reset sequence to current maximum value of rows
Previous Message Casey & Gina 2024-06-13 20:18:30 Re: Question about UNIX socket connections and SSL