Re: Two sequences associated with one identity column

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Colin 't Hart <colinthart(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Two sequences associated with one identity column
Date: 2025-10-29 12:07:08
Message-ID: aQIDbBO0nJTiMd5C@depesz.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 29, 2025 at 01:04:48PM +0100, Colin 't Hart wrote:
> Thanks. But as I wrote above, trying to alter either of the two
> sequences and specifying "owned by none" results in the error.

Sorry, missed that.

Can you please provide pg_dump output from this db, just schema, just
this one table, and both sequences?

Or, how did you arrive at this situation?

Did you try to alter table … alter column … drop identity;

Best regards,

depesz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Colin 't Hart 2025-10-29 12:20:05 Re: Two sequences associated with one identity column
Previous Message Colin 't Hart 2025-10-29 12:05:30 Re: Two sequences associated with one identity column