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 1vE5AA-004RlF-Tf for pgsql-general@arkaria.postgresql.org; Wed, 29 Oct 2025 12:20:26 +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 1vE5A9-000pIK-Oo for pgsql-general@arkaria.postgresql.org; Wed, 29 Oct 2025 12:20:24 +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 1vE5A9-000pIB-EB for pgsql-general@lists.postgresql.org; Wed, 29 Oct 2025 12:20:24 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vE5A6-004so2-0S for pgsql-general@lists.postgresql.org; Wed, 29 Oct 2025 12:20:23 +0000 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-7a27bf4fbcbso6111934b3a.1 for ; Wed, 29 Oct 2025 05:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761740419; x=1762345219; darn=lists.postgresql.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Qyq9dp9MRBFiAnxiTLga+GFcp9+kw84DCNrblfCJvmM=; b=ZzwYE/dmIgQC9X7bc6QFBrQOJ62QB4qYiUz+MqVSXZC8wSSaoUlyrCJmq6tHKSdZaT WNH7yOXuLbEfC37ramCFp59aefoke2oiYor8Q9vz3zdYWtHxB2n4QGJG0I0To7B10+vv bZY/wPSyYGQ+memqRF4MCko/Kkx4Py7EFux0qZOSWGFKOZO8oq2pDvmWtVu9ZwTeBeke +kC3iOXUc8it1iFeTM7HmjEkeIdUGSD3oFpOvVDx3zWOagzehG8cvR6YvBdfYxlU01QK 0lh5nN6Sp8VIqEWmRW4jLquO951tCdlazFfOLkTu7KE5lvtkQ/wfh9yCnqTJTPpiXi1T aqMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761740419; x=1762345219; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qyq9dp9MRBFiAnxiTLga+GFcp9+kw84DCNrblfCJvmM=; b=NOelnaPQAI/O3p2J7AZChnf7Ly5/0dkrM9eI6buOsrdcV13MJzAD4ZAt8dJwG/pc5I s96vLwYVamcnqeHnhYAiT4l0/lTe3SmIE/+9Ek0iGJJN1wwxUwIbvGgni8As4dXtzzDF nWID18Qto6VQ1y6QAQFTWZs0gbx/D2jygP7wZDHORFWxWbi1UySm+skA77hmZvqbFVpJ mEm38W5mslXsM0s9xUV2nRN7i80jwx3jQue2MEFSl0Vg1YqLUtgVp59txIjfHCwzJLvN 2f0XwDvWWmIHwFDu87x4pTjX86/ui7gb+oawkJu2qPm/ej+AryrQ+olyxoDqP6C12AFb wa3g== X-Gm-Message-State: AOJu0Yxq+Fyj+kjI84Min6fNXDgFYP+/QFf+iq05vIewUjz4MCeBdR2d HKB1TNnKkFL3QbsxZpRV+Thi+Acywc8yZ6rT6PxckMGg0bQAmT8/XkACAefGwd8583eobVyIVRb 94fBEF521vsvHQikvZPa9eKBxCHmQz81naw== X-Gm-Gg: ASbGncvnBjeT4p633V+EmfR05xcaHxj4qbLnaoWhitZjpLFCVodl7qodTr3B5m46Gto wATiPkjxM+EMkVEk1+hKGXtCnPC11OZBCfxBB87+xFGouEWsWP11KYn4H6fpnZfQ0VaP/sGt1ml +Ir8XEDkgjqul+GTsvPte/RCU8qHPwl1jQyIjpbdhOlcVJNs6PwQaDmeRUGnig+Anh4GSM3RSKu aAPQ4w/O0w1qdImXd8mPwHFutz5hlpNSmSaFLp0bnYcC56BnfKagBywx2mkQ61wckFwTeH7bTYS bYlOhzyf9ym6NF9xV7Y+mPVpaxhzenOfY/cdHE7ZMRJFqu8EB/iRh7vzO7rpuykVzai0cp5unW1 NbpcpiKirdNIX2I3K13x1pNZkDqYqXtyfVwZ5wC3qz/JwA2z1SQUwsbHZy/kV X-Google-Smtp-Source: AGHT+IGEycv9BYfN4k4WUZFapLZfkrxp7jlzhXTMe62NYLmm3lhM7aaZcVdX3A+G0FPoWhmlVbf7OiZjnu0DhVtWSss= X-Received: by 2002:a17:903:32c6:b0:269:b6c4:1005 with SMTP id d9443c01a7336-294deef68e6mr34116755ad.55.1761740419329; Wed, 29 Oct 2025 05:20:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Colin 't Hart" Date: Wed, 29 Oct 2025 13:20:05 +0100 X-Gm-Features: AWmQ_bnRS5CL_8k0ZZ5u40NUwb3ctHElue_KyVHeRxlllRL1TkJKY_OIgVYIL1I Message-ID: Subject: Re: Two sequences associated with one identity column To: PostgreSQL General Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Again as I wrote above, drop identity complains about more than one sequenc= e. I have no idea how this customer arrived at this situation or if it affects other environments (this is actually a dev database that we're trying to upgrade as the first step in an upgrade project). I suspect the dump will just show two sequences that need to be imported and it will fail on the second one. I'll make a dump. /Colin On Wed, 29 Oct 2025 at 13:07, hubert depesz lubaczewski wrote: > > 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 =E2=80=A6 alter column =E2=80=A6 drop identity= ; > > Best regards, > > depesz >