Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vE4xP-004NS3-Rw for pgsql-general@arkaria.postgresql.org; Wed, 29 Oct 2025 12:07:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vE4xO-000eWF-Pj for pgsql-general@arkaria.postgresql.org; Wed, 29 Oct 2025 12:07:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vE4xO-000eW6-Ep for pgsql-general@lists.postgresql.org; Wed, 29 Oct 2025 12:07:13 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vE4xL-004seP-1f for pgsql-general@lists.postgresql.org; Wed, 29 Oct 2025 12:07:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Reply-To:Message-ID:Subject:Cc:To:Sender:From:Date:Content-ID: Content-Description; bh=htVYT3DXpthkFkEsPLefkwLyG0gq2jPCvUd+4YTv+E4=; b=buee2 MOLgtZVEtxI1QlbT+cw/1qKl1yDV9GZMG5kRGn3qAmjEdN/FLGC0UTGcM+p+6k5Ag9nptjCMfk8L0 /oCeuidbtJz7UNk4tkuaNTJ/AljV2BCVjbhbThGmXa/Ler4Q8+twVca4XOi9Yj/pSFLfz7XXN8rhA oS5za9/gA73A=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1vE4xI-0034Vw-2C; Wed, 29 Oct 2025 13:07:09 +0100 Date: Wed, 29 Oct 2025 13:07:08 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Colin 't Hart Cc: PostgreSQL General Subject: Re: Two sequences associated with one identity column Message-ID: Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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