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 1vE6Oe-004yQ8-Q3 for pgsql-general@arkaria.postgresql.org; Wed, 29 Oct 2025 13:39:28 +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 1vE6Ob-001DdB-Si for pgsql-general@arkaria.postgresql.org; Wed, 29 Oct 2025 13:39: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 1vE6Ob-001Dcz-He for pgsql-general@lists.postgresql.org; Wed, 29 Oct 2025 13:39:24 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vE6OY-004tMZ-09 for pgsql-general@lists.postgresql.org; Wed, 29 Oct 2025 13:39:23 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-3d37c1fb05aso1336219fac.0 for ; Wed, 29 Oct 2025 06:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761745160; x=1762349960; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cUu9NFtpQRNPGToERjSQ9k6wJ+7tS1CAvd3WZY3aYHs=; b=IcYuzi1SHO89Zd1p2hkbdwbrugsSTd+/P+61WYyeEZOvxR7RjkV+RddOj/IwwvVnKE 4/At26pSZHpAHLjk1rU75Rccrd/5vANL5Da52w5Da3butgNbx8J5ZaD9aGkptJ9mCGsJ K2KI8BGEjqTJiXL4FpZRHakg9UfOElp3wAxbzPkhBNTjbVZByjpA4SZ76vIQyGvKJV/S +KUztQ4zKFC4ml5Rq3wdpF898E84h9UMg9w+4E1H7U4rq01EEiALLRDx9+psp5pzGCbo 5Okf0mO3H87zX3zyKvhKGHxvVeHERrecx/UddnG7fl0JcOWrZj/4FGCwZti54+v6D4ij 2x8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761745160; x=1762349960; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cUu9NFtpQRNPGToERjSQ9k6wJ+7tS1CAvd3WZY3aYHs=; b=L1GdSwrb+Y3rxtSltfs8senTE39dNYIknxgX8bO/4p5gBa5UTFY66/KLOV9J/1Gh6r 0amOOlE6xJLPI+/3jQjMeK91p45R8krOxlnxWgP2sZvzwXq4HULIpTJKXkC8wx5rbxRC mdyn5Oqkk4F0jsWn/6zJ2wRVAO2rBpKt7OZ7DYUpYu52xcI6yLS0MoQ9Rca+xENZY+hI Wdbw3f25dbMCnH2xmK1DeWOHC+3j7nQE3CGkAoOSb/IkwAsmushecCroNQ9RIfF3Zr14 fd4BlVJ72xrnMu5Mn5TurQMMe0R/41h0/sFbjBKfPw/xEueke7bsfYZRKH2oaiAtv5qB G0Vw== X-Forwarded-Encrypted: i=1; AJvYcCWl8/9p9Awx/+786aFCoA2RBA7KykT/rKMkV5b6/hjeM+W7AKB+fughKVvlWCP9mk+FFnoYVTVR4rCvs3yz@lists.postgresql.org X-Gm-Message-State: AOJu0YyJH86EOPscMwOK0vU+f6rrXnV7aI7s6Q0gqUCIvuL0BWjqMzJf THq/D44+7HScMm0qcUMuacUlQZKzRHldsRlLHUFjw4ECYYfhYN6WOXcROJtlUlynUSKnctFzx3n XbET1IL/tNnYLI9kpJIIPA2l+RWAZUNSZ+A== X-Gm-Gg: ASbGncvAVm9WU6wL3hsB1JeLztTLi5FBUnmqDNYnGFltHnB/Cq1WUUjXaTSyvvxx+sx Enjugj+tHrjT94OT+8CO83x4wEmtCetgMeHtmI5pnlytQvR4Zaij+rsgXDN1J40Mlj0cjtVP5tn cINnzO1SVa90R6rHAnztRjPgCVqvsjZ71lfNGwM7pLNI6Bw0rIdKn39Ug3WB+wJ9Ybu8VeT2hNU vOO+P2r8qBU1tFHcecgdAgkZL9Au2Edgjy+oJkuk9cZlLTQD4Bu5hVJiLosAg== X-Google-Smtp-Source: AGHT+IG54fd6ku2hXHNkCm6AhqBLxshqVW8JvH1lkV5b+rk0XDWGPMrfDgbgKA7pnTeipbYVJzlinMgSQE2Uj9qReTw= X-Received: by 2002:a05:6870:899a:b0:3c9:43b9:f30e with SMTP id 586e51a60fabf-3d746efe8f6mr1346313fac.24.1761745159736; Wed, 29 Oct 2025 06:39:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6802:4c04:b0:603:7a4:79c0 with HTTP; Wed, 29 Oct 2025 06:39:19 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Wed, 29 Oct 2025 09:39:19 -0400 X-Gm-Features: AWmQ_bnPAXDmlKP6iS4RsHh6pPfYvCSOM9HTxsktCOviunBem5uk7jDN-I75KTA Message-ID: Subject: Re: Two sequences associated with one identity column To: Dominique Devienne Cc: "kurt thepw.com" , "Colin 't Hart" , PostgreSQL General Content-Type: multipart/alternative; boundary="0000000000006e522906424c4254" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006e522906424c4254 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wednesday, October 29, 2025, Dominique Devienne wrote: > On Wed, Oct 29, 2025 at 2:17=E2=80=AFPM kurt thepw.com w= rote: > > If this is a development database, perhaps you can do a schema-only > pg_dump of it in plain text format, manually edit out the offending secon= d > sequence from the resulting SQL file, and restore it into a new database= . > > I'm surprised the conversation is not more about preventing this from > ever happening in the first place. Since one cannot get out of it, > apparently. --DD > > If a reproducer is not offered discussions do tend to focus on fixing the symptoms since that is what is available to consider. Not too surprised no one volunteers to reverse-engineer a reproducer from scratch, given only the end state. David J. --0000000000006e522906424c4254 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wednesday, October 29, 2025, Dominique Devienne <ddevienne@gmail.com> wrote:
On Wed, Oct 29, 2025 at 2:17=E2=80=AFPM kurt thepw.com <kurt@thepw.com> wrote:
>=C2=A0 =C2=A0 If this is a development database, perhaps you can do a s= chema-only pg_dump of it in plain text format, manually edit out the offend= ing second sequence from=C2=A0 the resulting SQL file, and restore it into = a new database.

I'm surprised the conversation is not more about preventing this from ever happening in the first place. Since one cannot get out of it,
apparently. --DD


If a reproducer is not offered discussions= do tend to focus on fixing the symptoms since that is what is available to= consider.=C2=A0 Not too surprised no one volunteers to reverse-engineer a = reproducer from scratch, given only the end state.

David J.
=C2=A0
--0000000000006e522906424c4254--