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 1swh7n-005Ugh-6G for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2024 12:09:35 +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 1swh7l-00Fzyn-UC for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2024 12:09:33 +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 1swh7l-00FzxI-H6 for pgsql-general@lists.postgresql.org; Fri, 04 Oct 2024 12:09:33 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1swh7h-002VKC-Nh for pgsql-general@lists.postgresql.org; Fri, 04 Oct 2024 12:09:32 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-5398e53ca28so2350101e87.3 for ; Fri, 04 Oct 2024 05:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starfishstorage.com; s=google; t=1728043770; x=1728648570; darn=lists.postgresql.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=d8A1jTd/Wr+h49PwN1eIQXk7U7Z7BltAe+QMPOBeLoc=; b=WrOyKGUucW7hsrekLW7RUvuDIPXSY2V1Z/DE2MZjmiDaaC0ykC2G2NXwric2AKharl 0WNAwGkaDRqeXITYd1rNnorRLB24rsdbjhOxnic1D3wDqtfxpK4cBk5FcuT0aytNi9fO WkOjQkc9Omr2vNWdmdm4K7knlx2W6HmetT78u6wvp34fhKh7XmGARdLwlDNIkYXdmHIU LeEM7TaewDWcOV3l69Rf5jCnj4+U/DRqF/BKQNylPtBBRI39a/OqPmdbHGyw1rv080yv 26xagV4Gd0V58XvrRBR0xG/LGj/tJJ/76xtbjYZi3Zak3ruIQh1fSGp7I5nNwOUJzSPo YkWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728043770; x=1728648570; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d8A1jTd/Wr+h49PwN1eIQXk7U7Z7BltAe+QMPOBeLoc=; b=SNNCitPZxTu0THWBrcxdMAOw5FIteT7yrmmVg0Idfp0sPgjojNWsQmx/4XMHKHcBmm 3HbHHYp/6/HtVjkGfc7XOi9/m60ulyg+UGvD6quKY4hnTtOviPyEoOR3Mjt0YGo8Ebkb 6jXXxVzgIs7mGxgoxkdInExnns4n7QGjzpikg0cth7QSWOqDAdvXja1o+n/WN/UQGieE 9A3lCDpVtq76yQDuRk1V+2uX6JA9MEdIImTxFbHk38kVzOaJbMWzLWVIvPvjhgpMkpf+ CgTSjjTjl6mEfqJgsPKaaEB8PUEXWKd6Z49jaSfpGvG5keOrxDt7ZYpfwWg21ueVEfKh jSYw== X-Gm-Message-State: AOJu0YxVG2cEkWPhTTa5N9XRm2zX91qOKRUOsw0Q/Lj7ySrMGqFX2oEW EypMfReYsndC7lti7b2wASQnRHlbhsJAV+4aIgYmexGlQ/fjlmvQ7p7w/G0matiFV2HEJGLdYJQ shv3lFW2e/vBg3S3un7UToeZkIHTnfy41ICzniLzP4mzcLjPVa/z+fA== X-Google-Smtp-Source: AGHT+IECJCX9Tq+eotgY+ntu8CRjTOJmAVWxU3sf6rGr31DfekKZpOvXxS1v4HqwOZ/7Qt1Os3EQPc/RUo/Ks4lcUuM= X-Received: by 2002:a05:6512:3ba2:b0:539:9717:7ea0 with SMTP id 2adb3069b0e04-539ab9eb319mr1711343e87.55.1728043769779; Fri, 04 Oct 2024 05:09:29 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Marcin_Barczy=C5=84ski?= Date: Fri, 4 Oct 2024 14:09:19 +0200 Message-ID: Subject: How to troubleshoot: ERROR: cache lookup failed for type? To: pgsql-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 Hello! When reindexing a table, PostgreSQL returns the following errors for two of its indexes: Index foo_idx1 on foo failed with error: failed to find parent tuple for heap-only tuple at (1162372,1) in table "foo" Index foo_idx2 on foo failed with error: failed to find parent tuple for heap-only tuple at (1162372,1) in table "foo" When trying to show the tuple, there is another error message: SET enable_indexscan =3D OFF; SET enable_tidscan =3D OFF; SELECT ctid, xmin, xmax, * FROM sf.dir_current_part_8 WHERE ctid =3D '(1162372,1)'; ERROR: cache lookup failed for type 1769235301 Searching for oid=3D1769235301 in pg_class, pg_type, pg_namespace and pg_proc returned no results. It appears to be data corruption. It's PostgreSQL 13 and unfortunately, data_checksums are turned off. I would appreciate any suggestions for troubleshooting this issue. -- Marcin Barczy=C5=84ski