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 1vEUUD-00CJUa-W1 for pgsql-general@arkaria.postgresql.org; Thu, 30 Oct 2025 15:22:49 +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 1vEUUC-0095uT-UQ for pgsql-general@arkaria.postgresql.org; Thu, 30 Oct 2025 15:22:47 +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 1vEUUC-0095tZ-JV for pgsql-general@lists.postgresql.org; Thu, 30 Oct 2025 15:22:47 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vEUU9-0055fA-1v for pgsql-general@lists.postgresql.org; Thu, 30 Oct 2025 15:22:47 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-592fb5d644bso1346753e87.1 for ; Thu, 30 Oct 2025 08:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761837764; x=1762442564; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OpLU1zZ8G7NbXI+FNotHGmxgZWBXLsmVtP4glYg8NXE=; b=G9aGABmkzrsMdgOfxkXLYw0Gpv8hMp6Yd4SOlyVKpCW5Us3gsVl9RUvbuL26x9OkFj df12O2ymXADUNRazPzg23NenqUm2Lpj9LQjouy0uMgzEfVPdCdBW7gqU3X4MU0SvAklR CHz5gQLRCArG/xHTbZVkgGY1zCBy9GPpAtV+t7VWZUNZELncHD126CxeJFZKtCW7KYeA 5ayJMQHvgSkzMSlVmxU74EOAtRV7ea5Ys5cDFk44SZAW0CkThnacuXKr6P8E0BD7ESJ9 k6QIfpeGYnINGNhVf7zyBAcnCod6W34rM8+v+Tr85owEZQ++RQufydCCVacyunjdNLpi LT6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761837764; x=1762442564; h=cc: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=OpLU1zZ8G7NbXI+FNotHGmxgZWBXLsmVtP4glYg8NXE=; b=PvywLTOq1/+dvSTRYvoD9tiHI26vZ6ET9nYtFCXMGSJGlpyvhrChNph/rRdjOu1p3r e/d00ET2O1ZpQxM3g3Q4oc+wZgHQWRyqe5gcSLV7FpvqOFmtv7GWvV3JCnzktO3p58mn 161gFmKSsUcHb4wwfqAaIsMFpIMfyut0FUklYaugi1loKVOCCHuHMEK3BBaD9rafGMzJ rwvGq5lkdYsy71ILQ6A6F/nq6gHEVrJEmx0NVcAxf8h0iBO8erbu3xrst9s+nEati/Ox 7I2bfm+vB/zW1dQVYMdQlS45/D8Y1tNVWyCeOSC9aMoba8NEIJvHTfHyqVcIhRFuDt0B Y4Lg== X-Forwarded-Encrypted: i=1; AJvYcCU/aASFTBBmDiHZMKqv2OnNhznKJUQWiDL6/3c+B8lHbL9TeW6UmQHTY0ILTyLR/HFWcs43aVLXxC3OQrP6@lists.postgresql.org X-Gm-Message-State: AOJu0Ywg6Uh1il4l2WwTBMVZ3DJh8QJ50ylwB0ZfPmgPpJ9XhTwGt4uM qta1XgS7yKWu/nMN6ukDlPlAcVV4rxY7pRE1UDoaJPNhqm7C39WOpJWrVkgBepXsR2njbcSay7u nwQgXinNbHN+VWMtSu5OKhnLlWkHvPOA= X-Gm-Gg: ASbGnctLktAmSAmSX3YpNChHi96UtLMDfo0GkhF77tdggMd8WqMca4cHghz1chEDIli aqgk5ODuG8fyr8ybNuDb8c/R3P4MIlI3Elo5uS9EgDu3d1wOrW3qkk8bHI2hJAYOX67h8xG62fF 6jFfxkOXLt04tR4FXHrL6Sl3yZyYYeblpj98RQ4XdUPPv/c3mcP2ypzH5/XvXoXB7Bl+ZZj6snZ fl7gqrXrdTyBJNDzi1SDmWPK8dExPdiIammEueeGDbuyFrhOqD+n2+JduMncc8= X-Google-Smtp-Source: AGHT+IFGq2wi4sStJeI3DaEfQik+4YGPbnj7DKlHgpKhZHZnqKpiHU+rWNWCGe/ctqvksp6/4kHuvE5AZgJGSy8OM4I= X-Received: by 2002:a05:6512:10d2:b0:57b:478b:a924 with SMTP id 2adb3069b0e04-5941d4f5522mr50075e87.12.1761837763399; Thu, 30 Oct 2025 08:22:43 -0700 (PDT) MIME-Version: 1.0 References: <4c41582a-83ee-4500-abde-e44a0f3d3895@aklaver.com> In-Reply-To: <4c41582a-83ee-4500-abde-e44a0f3d3895@aklaver.com> From: Rumpi Gravenstein Date: Thu, 30 Oct 2025 11:22:31 -0400 X-Gm-Features: AWmQ_bnH23L27wfBMSGWHSGwston1vRsm6cALUsT9gUT3uQgeFFCGuSw38XHA6k Message-ID: Subject: Re: Two sequences associated with one identity column To: Adrian Klaver Cc: "Colin 't Hart" , PostgreSQL General Content-Type: multipart/alternative; boundary="0000000000000a1437064261d2c3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000000a1437064261d2c3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've seen two indexes created on the same table/column when you create a primary key as part of table create ddl and then also run a separate create index statement for the same table/column. On Thu, Oct 30, 2025 at 10:42=E2=80=AFAM Adrian Klaver wrote: > On 10/30/25 01:55, Colin 't Hart wrote: > > relname | relnamespace | relpersistence > > --------------------------+--------------+----------------o > > | 524799410 | p > > | 524799410 | p > > (2 rows) > > > > Well so much for that guess. I was exploring the idea that the sequence > may have been unlogged at some point and you had both a logged(p) and > unlogged(u) instance of each. > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > > --=20 Rumpi Gravenstein --0000000000000a1437064261d2c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've seen two indexes created on the = same table/column when you create a primary key as part of table create ddl= and then also run a separate create index statement for the same table/col= umn.

On Thu, Oct 30, 2025 at 10:42=E2=80=AFAM Adrian K= laver <adrian.klaver@aklave= r.com> wrote:
On 10/30/25 01:55, Colin 't Hart wrote:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0relname=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 | relnamespace | relpersistence
> --------------------------+--------------+----------------o
>=C2=A0 =C2=A0<sequence1>=C2=A0 |=C2=A0 =C2=A0 524799410 | p
>=C2=A0 =C2=A0<sequence2>=C2=A0 |=C2=A0 =C2=A0 524799410 | p
> (2 rows)
>

Well so much for that guess. I was exploring the idea that the sequence may have been unlogged at some point and you had both a logged(p) and
unlogged(u) instance of each.


--
Adrian Klaver
adrian.klave= r@aklaver.com




--
Rumpi Gravenstein
--0000000000000a1437064261d2c3--