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 1v9oqQ-0092a2-La for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Oct 2025 18:06:25 +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 1v9oqO-0042lw-DZ for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Oct 2025 18:06:23 +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 1v9oqO-0042ld-3F for pgsql-hackers@lists.postgresql.org; Fri, 17 Oct 2025 18:06:23 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v9oqK-002KRX-2b for pgsql-hackers@postgresql.org; Fri, 17 Oct 2025 18:06:22 +0000 Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-93e7e87c21bso68907439f.3 for ; Fri, 17 Oct 2025 11:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760724380; x=1761329180; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WT7u19Bvt/ljbzckCpgBb0cfNMigYdMRRlf/aVXD04o=; b=jPEfxd2TLI+9ofZ+arHGGjDY0AFsUvXU3OlfEiBHRYhTK6UsIMruqrDQxwySiCpj64 yglKAjYsQ2digAIU5S4FnumG7Dkjtr6ePVHcJBwyYAc7okwkFXVCvTMbZVBc2TGwGE/9 PFmQEzMZcSuKHaKtJiy7YTSgSolKQAhwnJ3EsZv8HD8rxD0QYc4pVgYae1HCWqDf+YqN KL55jY39Wi08340dFOOg7rLRqYOg6vyoDJiRmwvfzxp5uXPiR1E+64zdHR4bLz0YZqQU Y60Bevyj+PJyMLBTAPW+P/zGB67xuQsUmlW9niOgtupd4BdGp5Edep+7zzIAyC1M/qWi OB1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760724380; x=1761329180; h=in-reply-to: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=WT7u19Bvt/ljbzckCpgBb0cfNMigYdMRRlf/aVXD04o=; b=iZfcllPoH7QXKi3r9JMnlT/fquB6meOOPaK5eI5kwaxCDK/Wy0xL55IOPg88qMcVGy gpYy5KDBqGUe/vx/WRwQz276L6osFUEPmp2l3PGghVK8gTtxdQljUWJvKFIQIyoctuNa ASEL4S22P8vIFTlHP7JtVLU+b4fRtAQp3i/eCuQwyiubQxT2/dlw46KYkVvu0XquhjYJ XlMq8hnKkG7C57Q0yM4MbK0AW9xWltqzvP0cCtAsLAuF+Kg5z0+oKmcieU+iFXZ+9rhg gOlrnlwVEKaneQJwu9dSmXV3ISQNgbAEoz9/wFLv6uCcqV08ky129bQdW4zu7BWByQAa mZSg== X-Gm-Message-State: AOJu0YzTimqzeoejEb7iyiq+Im7Z3LpGcSVwVhhHqHv//4ZLZPFLMWuD hVNnNQIUFIwBgsSlOfwfbXtKM/0gu0oC1UIh7Ms5JvOh/Ol5rT9wy+UM14CYZg== X-Gm-Gg: ASbGncttWbv9uie0JLmFEeYmRKCRhBq5H5ZfHxovFT72qAinaWGs/44od+ImsScHEhd 4Zo/IS9VAg2SB99l04Aq7WI2vJYlqZKHO2Zi9LZb46oox8joeC9+fglVtSODpf6J4mRWF77RR7K zYLU97EcraYcsd0U3IOOtQaUJydk5fnOwiv48J7XRQ1Dt95XYhzJkXMD4lScJZT8vTP/8+2GWCr Vo7mOV/FhvtsSfvqXIdxshbMkjBAba8ML83hMcJOR7IU4BOkKZFEs0BEa/vPEV78Jzpnvjzb1oP RK1ABgUK/Uv0yUVAJvjPAwBaiB3FVdx1Id67X5uDXksCjlaGK5JnA+rMm1ZCY/xtJJasms+U015 oYqDWNHYWx6088LtQcFUjgMctGppXqaFNbm5E89nXVBzBKxr2ku6cE08+sd9WYTqVP5KooOckDC xL6MLWeTOanSam3oqG9GsXziR0FXT68KBuHkWBdaU31sBnP0x7wuTcyCJy8sReZae5NKhIulNwh oH4 X-Google-Smtp-Source: AGHT+IEp7sqf2fINixPB+MmldhTjltoWzN7BNLYjTtsCZZ4WdQGBvgL37j+nxBAfNyEqrwXfgvuBwQ== X-Received: by 2002:a05:6e02:168d:b0:430:a38c:b761 with SMTP id e9e14a558f8ab-430c52bee18mr57919705ab.21.1760724379726; Fri, 17 Oct 2025 11:06:19 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-430d07a889csm1730985ab.24.2025.10.17.11.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Oct 2025 11:06:18 -0700 (PDT) Date: Fri, 17 Oct 2025 13:06:16 -0500 From: Nathan Bossart To: Tom Lane Cc: pgsql-hackers@postgresql.org, david@justatheory.com, Andrew Dunstan Subject: Re: abi-compliance-check failure due to recent changes to pg_{clear,restore}_{attribute,relation}_stats() Message-ID: References: <1713509.1760721320@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1713509.1760721320@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Oct 17, 2025 at 01:15:20PM -0400, Tom Lane wrote: > FWIW, I favor the approach of having an in-tree, per-branch file > containing the commit hash of a commit that is the current ABI > reference for that branch. If the file doesn't exist (which it > wouldn't in master, and probably not in recently-forked branches), > skip ABI checking. I think this is superior to the discussed > alternative of depending on git tags, because files are easy to > change or remove, while tags are not. In particular, I think it'd > likely be impossible to make the ABI reference point go backwards > if we use tags. Maybe that's not a case we'd ever need, but I'm > unconvinced of that. I'm new to the topic, but IMHO the per-branch file approach is by far the best approach. Not only is it much more flexible, but we could even use it as a centralized list of ABI breaks for a given branch with justification for each. I can't think of any strong advantages of keeping this stuff in git metadata. git itself uses a file for blame.ignoreRevsFile... -- nathan