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.96) (envelope-from ) id 1vzxs5-001UC5-2T for pgsql-general@arkaria.postgresql.org; Tue, 10 Mar 2026 14:15:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzxs4-003kZ8-0Q for pgsql-general@arkaria.postgresql.org; Tue, 10 Mar 2026 14:15:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vzxs3-003kZ0-2c for pgsql-general@lists.postgresql.org; Tue, 10 Mar 2026 14:15:40 +0000 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzxs2-00000001SXt-2NAK for pgsql-general@lists.postgresql.org; Tue, 10 Mar 2026 14:15:39 +0000 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-46704177543so1241287b6e.2 for ; Tue, 10 Mar 2026 07:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773152138; cv=none; d=google.com; s=arc-20240605; b=U2d29umZND70tUb026fUDaKRTI+gZdBHE7bkDugaoIBGFve9K+OWdcK6ZzgzP1Tqlt +E9FmTPIKfVht7/tsap3DcYg4gSm/HUjBANhj0WxcH65ER+tqNY5sFbY9Ugqw8bZIJDn ZNu7oxuPIirc1sZZIUN6w9oKEKeXMHAZxin8GbZGGKe0zvhZaIHKNAqLRnwntu3HqKht 4BrNpjgm2q/Ztr/lCmI2lnBf+QFoITWuWwexmKEtxbdOS9TvULjUKf0fxsUcb7V/PuSE IUdDu//dzKiezRu/ZmYXewSfmKRt4Fa7Uu1GCXX5S3AWkREwiHc/99ovumw6VxMR2wWn 0SWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=JVtA0Ap1kKp2CmEk0VlApNdR3s7cDgYjjbubgE1XmdI=; fh=2XKv6RuYw9Zy0CMsFQypmr8KEm9eJX7aS31c8R5FZuQ=; b=k7sX7u8mM6cUc6Vt4as15Bltj7I45pTXpaGpyYQQ490tqkP5Gz4bMla0FLQL6yKA8L IJ9/g+Of7LTJi2qBn1EVKNz4BD5RKigU06npdGvoVQcOHFQKHoJkOksHbOB8cPY2wIEM alRqstGmQ2ysunuRgYu2POQEqvXemANroDqLbP5uL7FHze90P3jXa89CG9Vdb+NDfamR +ZVkVgMxRrhiyVPf98T9ba/hVjtWXlqTcIiwuQ/GpdfEzJj5Aa1dwYJ6Z2kc75xalEwE CqWHvS9rN4hoqQTb/ZZVpisjd0Y5xRQfeiEeWCG5p57FFm19GUBXGWUtycHYDfnOy7Ph vKYA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773152138; x=1773756938; 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=JVtA0Ap1kKp2CmEk0VlApNdR3s7cDgYjjbubgE1XmdI=; b=NzBIXzH9n3mh7UxkBhFc7Pf9BV+pcrQlWvYy6+SB1UgL2evHbMZAZDoFGSqdv8ejIZ nBBand7+WEQP3Nb0Opz8Y2QUfg8WSM8ooYNbfLCtw3LM3XRX/leSbF9/F/KaymMuU+Lh 0Rj9YV5L20PKboR6RsB67Vv8iG1GwvTNorO7nXlatjD1HGjDLmst9GmYrV7Eb3SCO9Pj M6HBzunAnjEHv7OBRnt85G2ZdXqEyR5bIUrQGW8obIxOTaLvFMv7L58oWCdL9lallk9L UGhXy+wLx8yp3o5PPc3Udh7nR1E7xecghktsUyxK7vbhn3O48UFyENr4XiNGOukaY44K tJMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773152138; x=1773756938; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JVtA0Ap1kKp2CmEk0VlApNdR3s7cDgYjjbubgE1XmdI=; b=kXUPo+i6JxUxPaaZ0YQEZsdWLR5QVhiPT+pHfpesjjak+AuCoHETYHpcLHcEGp/HbC tnS9G420c/nHWJqueuAhjaqwUlJQEybyvMfCQED46NXWyN7aGk3Lsu4G3YFAC1maU0gT oiiZ3fLGHJOVMpb96RdR4REj07FEx4v66m5R/puXRZH3YLVyREfgRJ9i8zyGj/81hnn8 bmRcYrWqeLH4wEBOlXj+Jq/7FmrYyLkOkN3a37/u3auqM+NTWDV3Sbrn3LYHfkVAZ/U1 Bnqd5fGHKB/jXQwQdwACl0X19VJMcnrUp+VWKerR4mlqzMeKgxh/73vreU0HvGKsjojM zn8A== X-Forwarded-Encrypted: i=1; AJvYcCWjY32KY1f+oB00Ya6GbOCjjwBDvrmYm2JRF4zuxLl/K2yojsr4kzE42W4riPaT/6tVwxfs6vI7HOtQ7mED@lists.postgresql.org X-Gm-Message-State: AOJu0YxvpZGuJj8A1LrqgqXJyyTeeCQSiUrWfJ363VHuLuMei5tT96Fe n7t77rfD4pAUGQSdX4jxx8c3t5HFjfgwlS1CA2PZc1ZGufHPrc812d9jMUZfCCGD7b729JKZ/lL ayHldIU66q3AgAvC275bWoDl+uZ3gtK8= X-Gm-Gg: ATEYQzzh2kUo817Ygwvri48gGWWKcLZRFjR300nNLI92KLjR/BWzJAe3Us66Q1PrQs/ uYybAoo8JuYgkWkfbf7QBJacZw4CdYRZ4+0MODcx4Ys5JJI3P+ij/bL22XAqRvsJLhyCAy3wfpt l+Z9VMuuoeRa4bEglqiwbaZ+ySzBrZES39nWY49G5MK9EDMZlXHa6CSNZDp/aGMt5xdc9eyBliV wHaiiVJqPBrZOrU1UJwMmNRAypU0G8SGO8ClauvoH++5FsmlTEokihq0WTq6qtMeMD4J4mX21VV pbJDnWi8bZZQXj3rOUE+Pl0MwU24N37WxyWs8NjhPvhim02aC/A= X-Received: by 2002:a05:6820:81f:b0:67b:ad2d:1216 with SMTP id 006d021491bc7-67bad2d1545mr6010694eaf.41.1773152137692; Tue, 10 Mar 2026 07:15:37 -0700 (PDT) MIME-Version: 1.0 References: <25b5291f-a3d3-4655-a3d3-57f28b70ec5a@aklaver.com> <78328b08-249e-4251-8a10-b5dac183442a@aklaver.com> <0868c260-9812-4629-b32d-026c1fe6089f@aklaver.com> <7d455186-0cba-4fd5-9f9e-7051627b3ae3@aklaver.com> <2016a784-0644-4932-a0f1-3613c2521c78@aklaver.com> In-Reply-To: <2016a784-0644-4932-a0f1-3613c2521c78@aklaver.com> From: Greg Sabino Mullane Date: Tue, 10 Mar 2026 10:15:01 -0400 X-Gm-Features: AaiRm51auVy0NldLFfZ1MBuhENA6rvnJVf_FU-J8FNqDFk_Z4DDBI6p29UTuIoY Message-ID: Subject: Re: Index (primary key) corrupt? To: Adrian Klaver Cc: Wim Rouquart , "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000004ccbf0064cac2739" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000004ccbf0064cac2739 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 9, 2026 at 3:53=E2=80=AFPM Adrian Klaver wrote: > Yeah, but the indrelid did not change after the the REINDEX. > Agreed, but none of this makes sense. pg_dump grabs pks via a bulk pg_index scan based on table oids, so I wanted to rule out some problem there. I'm chalking this one up to user error, not database corruption, as the OP has not actually shown us the output of how they are determining the missing index, and then how the reindex fixes it (although I appreciate the pg_index query results). To put another way, user error is a much more likely explanation than anything else given the lack of specific data. Cheers, Greg --0000000000004ccbf0064cac2739 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Mar 9, 2026 at 3:53=E2=80=AFPM Ad= rian Klaver <adrian.klaver@= aklaver.com> wrote:
Yeah, but the indre= lid did not change after the the REINDEX.

Agreed, but none of this makes sense. pg_dump grabs pks via a bulk pg_in= dex scan based on table oids, so I wanted to rule out some problem there.

I'm chalking this one up to user error, not dat= abase corruption, as the OP has not actually shown us the output of how the= y are determining the missing index, and then how the reindex fixes it (alt= hough I appreciate the pg_index query results). To put another way, user er= ror is a much more likely explanation than anything else given the lack of = specific data.

Cheers,
Greg

<= div>
--0000000000004ccbf0064cac2739--