Re: Reset sequence to current maximum value of rows

From: Jeremy Smith <jeremy(at)musicsmith(dot)net>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Reset sequence to current maximum value of rows
Date: 2024-06-13 20:30:32
Message-ID: CAM8SmLUzKLyS6sahhGZZn2cgRQ6jzHJ6ynRHLm6AcSapWMvjSA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Aha! So it's likely that by listing the PK column name in the list of
> columns to be inserted was what caused the problem? No need to specify
> DEFAULT for it?
>
There's no need to specify the column if it has a default value, but
specifying it did not cause the issue that you saw.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2024-06-13 21:13:26 Re: Reset sequence to current maximum value of rows
Previous Message Rich Shepard 2024-06-13 20:22:09 Re: Reset sequence to current maximum value of rows [RESOLVED]