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 1tm0kh-003Pb2-Be for pgsql-committers@arkaria.postgresql.org; Sun, 23 Feb 2025 01:25:52 +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 1tm0kg-002XIX-6I for pgsql-committers@arkaria.postgresql.org; Sun, 23 Feb 2025 01:25:50 +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.94.2) (envelope-from ) id 1tm0kf-002XBL-P7 for pgsql-committers@lists.postgresql.org; Sun, 23 Feb 2025 01:25:49 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tm0kc-000E8D-09 for pgsql-committers@lists.postgresql.org; Sun, 23 Feb 2025 01:25:48 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-22114b800f7so64040955ad.2 for ; Sat, 22 Feb 2025 17:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1740273946; x=1740878746; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=l9y3UJIaNV+nirpnVOq/Mm/fp67kCpua7ugZYJHUdZM=; b=o7thm3OPXE2KX+8BtfBKBsXm3lNDrpApToEtPCaFRGWrq15bOhZKXhtxBvA0KZcZAO ERusxuyTP0xuMIS9Or6Duyms1ZSWh3hA6dRk3xKjkzdhABKYJYpNT+7JnaIVR4MYOmaY uATR0knn6Ka+IYQqYvsK7DQour6QKlM2WWkgI7wjCcjX5JCqBB2vsR6GHMPILoVOWHKc OXvQ4pAXjTimCWE/lH38xRjIZxDxPNhdd2HSZ5wTpI9YF0Is+JJjuPc8XCZnUOyWa1C+ 9ofN3pF6cLGx2it7E3acnrGv0Bar70mutxIKCX0EQzpWFLUE8S+bDFJZUGxW8LgxnjHZ Q7CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740273946; x=1740878746; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=l9y3UJIaNV+nirpnVOq/Mm/fp67kCpua7ugZYJHUdZM=; b=WZfAZm0cuFKzjN0bz7f26sXNClJCwuFafKj1aUbJ7+PeYT+TW0eZnGgIDV7mf1EKQu MLUIbFhb09npAHVpz8EmyEmeh3Gxyk2MSDNezh/e3Zhn8SmeWNkGXGwneOV9k+nOO3cg +8yP2E07/VWoabBP6Jy8BIy3gpJES1OJWYi7moj2wwgro45z+FKlvb+1HEhW4glkoZI5 wvrOMTMG7O/Q2/CeP/xjDUj+QgUDYmCjgWerJksrfSdD3HD1uiF4UQxsb43hJ8dy23jp bPtytt8lsLCWNEtQJQlSRXDvxKLbixfmx5uiZmJ42pgh891QrNrhy5CNeKRp0a57wXln tQgA== X-Forwarded-Encrypted: i=1; AJvYcCX0V4xDJ1QRTgrLwZb+XtnDyFVhuR+HYjVMHjzqp8O6tYBq9rBGckNTXie08VvIy7q9CNU5oZayE1C/lcS4lpTJ@lists.postgresql.org X-Gm-Message-State: AOJu0YwtS2jJEnqc75971mMfppLL6szboCDhh8d8hyYoGDit7jIoHkOK tEcH/fyV+yuJM1RnFIp0FTLcU7VBQYe+qTM274GONLqBG7H7AE6E6Tyk0Tvqzw9J/WUTAkwmg8d 8CQ== X-Gm-Gg: ASbGncuINA9fFSCuJ0UgHq/udtTj2FaEYm9hZQx8LjzR0N9QOAPKnojBU61I49Ad9mQ KfdafBuSW5/aM2qo+WZ8bf8DPUDxxvRi3x7B8OlHkXH6l0BACxTWq6qiWCt6kI4BuLkNlnLtjYE Kb/NM6uU4wuqeTeluqiclX6v7/cV8xfqbrHYQ/fJulKSftnKTNGEayEBW9PlTzXGWkTCFPsqEU6 R1Y9Q2/ZK3MlsWcRO3XklFboRdTWJl4UFqnWBF1IRLqacK9wHzmoV5E9rRoKrraNgB9WWLDLFMf 4/BWank6LebPVCJwA+dWuxLDUw4IAMRHmSV2mIJ/+ZVMpmJvkPO2dLd5g7mcImbRgeWF X-Google-Smtp-Source: AGHT+IHnDX9nXFvDd5hDpnR9vIdootcAdv711viWkZRBTN6qPFKU8lgYn02cqe0DdskVRbM4MI6jtw== X-Received: by 2002:a17:902:f689:b0:20d:cb6:11e with SMTP id d9443c01a7336-2219ff61211mr123584425ad.26.1740273946086; Sat, 22 Feb 2025 17:25:46 -0800 (PST) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d53491c9sm156057135ad.15.2025.02.22.17.25.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Feb 2025 17:25:45 -0800 (PST) Message-ID: <7fe52cfdc373df817e303050f1f10f25dcdf4390.camel@j-davis.com> Subject: Re: pgsql: Trial fix for old cross-version upgrades. From: Jeff Davis To: Tom Lane , Andrew Dunstan Cc: Jeff Davis , pgsql-committers@lists.postgresql.org Date: Sat, 22 Feb 2025 17:25:43 -0800 In-Reply-To: <684274.1740273302@sss.pgh.pa.us> References: <003dc9936317ab987faa0242f8e33e1cd2fcaf57.camel@j-davis.com> <40c1e76334f2baa747334c8fc513d12b8cb297bf.camel@j-davis.com> <3815127.1740189601@sss.pgh.pa.us> <5ebc188e731ac2b98d68459ce1a9ef3066981774.camel@j-davis.com> <3892121.1740193866@sss.pgh.pa.us> <976dcc37-b629-490e-a052-a057477d062f@dunslane.net> <301492.1740249291@sss.pgh.pa.us> <684274.1740273302@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 2025-02-22 at 20:15 -0500, Tom Lane wrote: > That's just crazy --- I would be > unsurprised if a range of back releases were misbehaving in the same > way, but not two isolated branches. >=20 > Furthermore, it can't be a coincidence that the four tables we are > seeing relallvisible diffs for are exactly the four tables in the > regression database that have hash indexes. >=20 > But I'm baffled where to look beyond that.=C2=A0 I could believe that > CREATE INDEX with a hash index misbehaves by changing the > relallvisible value even when we're doing a binary upgrade --- but > such a bug would be on the restoring side, so how would it be > sensitive to the source branch?=C2=A0 I'm confused. It's also strange that copperhead is consistently failing on 12 with: pg_restore: while PROCESSING TOC: pg_restore: from TOC entry 4163; 0 0 STATISTICS DATA "vcharidx" (no owner) pg_restore: error: could not execute query: ERROR: column "text" of relation "vcharidx" does not exist https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Dcopperhead&= dt=3D2025-02-22%2009%3A10%3A36&stg=3Dxversion-upgrade-REL_12_STABLE-HEAD I was puzzling through whether the attribute name uniqueness logic was doing something strange, but it's very simple. And the table and index should both be locked at the point of the syscache lookup. Regards, Jeff Davis