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 1uiifr-00F0jE-A9 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Aug 2025 00:03:31 +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 1uiifo-00Egh3-6M for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Aug 2025 00:03:28 +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 1uiifn-00Eggv-Ld for pgsql-hackers@lists.postgresql.org; Mon, 04 Aug 2025 00:03:27 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uiifk-000aqt-15 for pgsql-hackers@postgresql.org; Mon, 04 Aug 2025 00:03:26 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-b421b70f986so2967100a12.1 for ; Sun, 03 Aug 2025 17:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1754265803; x=1754870603; darn=postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BQ9GJr08a6Dt7fsYW75BGf2PirP/yC8ihb7a5sYufKc=; b=eupIVIAlwN2wX87R80CqTx6yKv6tKxfQvYfVq7/ZYagshGV/LE2QI290Dt7koofBNC YUNjiZuaU80+q9N4+zrkxU5kn9NJLFXRkdy2kyfVfaIaoYtvhYq47i5H0wZ8xXfE5YAh 1DmtKbWSVcnG4K5GX5Wo+hvmYqZvonNXaWYsI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754265803; x=1754870603; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BQ9GJr08a6Dt7fsYW75BGf2PirP/yC8ihb7a5sYufKc=; b=ZzG0vASIHT7X8cSnpFas9J5HF78vq7em73P1SOvrfByB8c0MT/GGnJQrE+0tKJ7And hY+V28vI2WOOiForqfTCL/hapTo3Xt/KFfQLGJWwBNLpqvOGxc+nVPOxz9HHOdWGzqCh pvemxAuOXHjb/hyVv16Mzs1X4Wq37MAmG5s7/vWRo5dkZkwbTOS6qUV9YduTtsV7NvnG 4mVFEvghzo78ZMYlFRRfIH5cmEz2OPDvGi6G/G5GTaRXWtSlQiPL/3SH995MfrEjG0kj orw6H477vQqXOmxDYugOtG4zM3VrpHDHM2n+wB/6QvCx17h9Rz0d/zOiabs8N2lncsje VTUA== X-Gm-Message-State: AOJu0Yxmv7Tfbt4J0FmJOefEqr1MwCiJUj/Ih88C7lILEYwm0xs0C+Jd /I3+6hiJWyuZCNaAAIoDurqLjiDxBLlturjjhTfIiVuQMudMrfW1Hxfni0YLZvkBAA== X-Gm-Gg: ASbGnctIx4U9IzroKsFwndxnw+2/1udYC8KHqaRk6xdDrtRIMIik1ZeXMyl7gmY5zAL W42wOwwwMldJSOlJZCEOKsrXqAbw1JGvHqQv8szE/NZsnNQd1wpa5yCZphQcRyVLYB6RCHmfNbE Dbo3l7CjVWGC7OJzCYYHfntVotI+iUE5iw29o30kOaDLXYknCBEByyOP8+rrYB4MZsv8O40ifvN ojZdkHAEutP9BOon5x+Z1uss+4WBn+5fHei7bY2G4LkPZnzgGOIZvops6FPEasj+JMJu6kzJxPe xg55svROhReo/coLlJ0VV/+HsszBFGE2PL/bBvaLVIVRGqa5VrJPIEcr1HJm4omWdtNdK0rYZzJ ZDdMvZjeHL+xuJm1yiTgWZ1R9tRCiUVh6tn2MGeYuYYK+vSFzMEg= X-Google-Smtp-Source: AGHT+IEkVEwRdOT0/NLWZUNq7R4VskXrpAnXE8K2hZua8iLdveetoKfpA3dCS9wdGhlMiJQ4LpOwoQ== X-Received: by 2002:a17:903:187:b0:234:ba37:87ae with SMTP id d9443c01a7336-24246f3e974mr117606325ad.4.1754265803427; Sun, 03 Aug 2025 17:03:23 -0700 (PDT) Received: from google.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-241e89a077csm93845255ad.138.2025.08.03.17.03.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Aug 2025 17:03:23 -0700 (PDT) Date: Sun, 3 Aug 2025 17:03:21 -0700 From: Noah Misch To: Robert Haas Cc: pgsql-hackers@postgresql.org Subject: Re: Test instability when pg_dump orders by OID Message-ID: <20250804000321.8b.nmisch@google.com> References: <20250707192654.9e.nmisch@google.com> <20250718191702.45.nmisch@google.com> <20250725022740.30.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jul 25, 2025 at 02:01:01PM -0400, Robert Haas wrote: > On Thu, Jul 24, 2025 at 10:27 PM Noah Misch wrote: > > I regret missing those in v1. I've attached v2, including branch-specific > > patches. I'll first need to back-patch 350e6b8, which fixed sorting of CREATE > > RULE, to v17 and earlier. Since 350e6b8 is conflict-free all the way back to > > v13, I'm not attaching it. > > Back-patching 350e6b8 to facilitate back-patching this seems OK. I did > a read-through of dobjcomp20-disambiguate-v2.patch and have no further > review comments. I did not read through the back-patched versions on > the assumption that back-porting was straightforward enough that a > separate review was not required. Pushed as 0decd5e. v14 supports binary-upgrade from v8.3 and regular dump from v8.0. That required two other changes. First, pg_opclass.opcmethod had name opcamid until v8.3 (commit a78fcfb). Accounting for both names was trivial. Second, pg_am first had fixed OID AccessMethodRelationId in v8.1 (commit 7c13781). The find*ByOid functions have been assuming fixed catalog OIDs since v15's commit 92316a4. The $SUBJECT commit added findAccessMethodByOid() to all branches, so I changed the v14/v13 findAccessMethodByOid() to be more like v14/v13 findOprByOid(), which doesn't assume AccessMethodRelationId. If folks want more details, let me know.