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 1x262X-005aIu-06 for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Sep 2026 11:55:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x262W-0007l5-07 for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Sep 2026 11:55:32 +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.96) (envelope-from ) id 1x262V-0007kw-1w for pgsql-bugs@lists.postgresql.org; Thu, 03 Sep 2026 11:55:31 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x262S-00000002iRk-3Lpi for pgsql-bugs@lists.postgresql.org; Thu, 03 Sep 2026 11:55:31 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-6a68ca482e2so2276187a12.0 for ; Thu, 03 Sep 2026 04:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=splendiddata-com.20251104.gappssmtp.com; s=20251104; t=1788436528; x=1789041328; darn=lists.postgresql.org; h=in-reply-to:organization:from:content-language:references:cc:to :subject:user-agent:mime-version:date:message-id:content-type:from :to:cc:subject:date:message-id:reply-to:content-type; bh=w8Vwao9JkrdhwnFxJnrcPRV2HVtjHMyk4PMHpHdFZX8=; b=yaLL/+A0yCcW6yNt5M6UgeXm8Yh4qCpa7kB25EX+FJRuOF/fG0Jx2oBMCV1ybLCK7T 8z75ZZWKRlYD6vktEKfYhHnsFJSyunkFxUCctB+gHXSvTpZ8O9uk3BKmOzR5iIohJNK6 P0vLxpRx/KoOLKiM16xhVZoiYvAZYXB7ffJs40di5dF60rJM1FnYM8+QaOkOaghzdto7 9Oz+rfp507pjFni0Ai9Ps6IxRJC7WHJJ+rrVwZaFktK/EqrjUvW0zcCTQ5loubb3GtAC aSlXn1/cE8KDFefyXFTmPfQssG8Dm3ggWTzyGsRUJWBpZr1/8Un747A+U+FQuE6GglCQ Rx6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788436528; x=1789041328; h=in-reply-to:organization:from:content-language:references:cc:to :subject:user-agent:mime-version:date:message-id:content-type :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=w8Vwao9JkrdhwnFxJnrcPRV2HVtjHMyk4PMHpHdFZX8=; b=f5I91fA4K1rYdEoFFIjj2pLho9d9Oum6e6QnmEUsVYfq7f/1SQrW1oN6QGkKJHVoM5 rggZJUDu/m5jQuezoa59Ov35Wyq7z8TT5Q0+F84b2oCiY1imKMK5vW1i58WDuMw6cjZU xLGt46r+l9cRg/ZGHn+0znBodVgRErchq+f0ieWPRVPC2n3umME0bRGQBwmgzlpLoeqA PEY6p2yVaptdLNhQrb1RCUMxuUz+p5VQBOKy4CToADhNq7WWtxHZBvFc184Y5QEY+NNV YqvoHennrndf+xVNkofU9Yb8pbShPnGDzLi3r7KtobtztDRrccNXEXKmJCpbqY7KOKnA Dkdg== X-Gm-Message-State: AFuF++kO6BBOblJNDaIwzkC+RWHnxsGIg5MmDPf59Mo0+viOHuErJB00 r2JOQm6JW8v5lMRCK8CBnuYEvTX8nbE6npaa0tTUagT/xiLF3VhcNNduBwy6r7UGxMY= X-Gm-Gg: AYBFou3C6eI3nuCZ2Dj9z9LZ8nKXpgC6G6ZV/sL7hW43Xy/r00IfNQ29S/BJFMXcbnh AvOBiNUXi4nAz9fkgmWz2w0ehYBQkrSV3aHeb7/nYezzpWOEoVdjTcwGBSPa4Of1LwL7fXAnnOo r/Cav47iv23y0HKwaopHNuSQng6YYd3x4hVvTNoTAaMivKM/CF9kjhbN3veq+bkf1UrwvIuzAOt cYULOrnHmU0QzhnwR2Sng+P3HXi4VlQPZqOunH9PPShw4v5GxuBz1d9K8gMxsP9hYsoxTWC238S ZpxEDdDYcTE/EAeqC58aEd+RY61urps4LhoGCKjCzV6oF/nrKedaF0DGWUe/x3ygPJoWXW1vpbA uczBaN8JhhOc1CUM4g8bJ2TSPGlVRE4SkrLpr0/IeCc5yg4/X9XEmCX+u+0u96jWtfwy+E3Bo9j uI+e3zPXmO73uE2qNsRTL/y0w+q7V4WgMbRLlD3jRUXRHIzkZdrSsoNDSZBZOeWW1ck8U4CVCou i3278ewZ561MRPBYECbNFKE1pOKO8rL/v0mPM6vrfB0 X-Received: by 2002:a05:6402:4347:b0:698:c13e:179a with SMTP id 4fb4d7f45d1cf-6a6829afda3mr7772606a12.10.1788436527654; Thu, 03 Sep 2026 04:55:27 -0700 (PDT) Received: from [192.168.6.110] (D57C1B84.static.ziggozakelijk.nl. [213.124.27.132]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6a67f895d8bsm2257882a12.5.2026.09.03.04.55.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Sep 2026 04:55:26 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------AS4z3OigMBPaS2lCM4Wt90ya" Message-ID: Date: Thu, 3 Sep 2026 13:55:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #19647: Difference in pg_basebackup behaviour between PostgreSQL <= 16 and >= 17 with pgactive extension To: Jacob Champion Cc: pgsql-bugs@lists.postgresql.org References: <19647-d18354ebe2134a6d@postgresql.org> Content-Language: en-US From: Edwin Polkerman Organization: Splendid Data Nederland B.V. In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------AS4z3OigMBPaS2lCM4Wt90ya Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Jacob, I think I understand it... Keeps me only wondering why the behaviour change in pg_basebackup is not implemented for PG14 to 16 as well. Now you can have a situation in which a) pg_basebackup and pg_checksums 'complain' consistent about checksum issues in data location b) pg_basebackup ignores checksum issues on files not owned/managed by postgresql but pg_checksums will still complain about them in the data location. Or is that what you mean for 'b)' below, an enhancement request for pg_checksums to treat checksums the way pg_basebackup does (pg >= 17)? > It's possible that today's pg_checksums behavior was an oversight, > because pg_checksums.c says > > /* > * List of files excluded from checksum validation. > * > * Note: this list should be kept in sync with what basebackup.c > includes. > */ > > and it sure seems like that list is no longer "in sync". But > personally, I don't think that's a backportable change, rather than an > enhancement request for future versions. I will file a bug report for this issue in github for the third-party extension pgactive. Please let me know if you want me to report an enhancement request or thet you take care about that Kind regards, Edwin On 9/2/26 23:19, Jacob Champion wrote: > Hi Edwin, > > On Wed, Sep 2, 2026 at 1:43 PM Edwin Polkerman > wrote: >> Yes, the 18.6 and 17.11 global/ directory contains this file as well. >> [...] >> Because of the difference in behaviour of pg_basebackup what dazzled me, it made me decide to create the issue in the pgql-bugs mailing list. Please let me know if it is not PostgreSQL related and if it should be created in github at AWS/pgactive > It looks like the behavior change in pg_basebackup is by design [1], as of PG17. > > I think that's separate from the general question of "do our checksum > tools handle arbitrary third-party files in arbitrary places", and I > think the answer to that is still "no". There was briefly some > discussion on allowing that, IIRC -- but as far as I know, it hasn't > actually been established as a supported feature? (It is clearly not > supported for PG16 and before, so I think a trip to the extension's > GitHub Issues is probably in your future either way.) > > It's possible that today's pg_checksums behavior was an oversight, > because pg_checksums.c says > > /* > * List of files excluded from checksum validation. > * > * Note: this list should be kept in sync with what basebackup.c > includes. > */ > > and it sure seems like that list is no longer "in sync". But > personally, I don't think that's a backportable change, rather than an > enhancement request for future versions. > > Thanks, > --Jacob > > [1]https://postgr.es/c/025584a16 -- Splendid Data Nederland B.V. Binnenhof 62A 1412 LC NAARDEN +31 85 773 19 99 +31 6 5118 8231 *Follow us on LinkedIn * --------------AS4z3OigMBPaS2lCM4Wt90ya Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Jacob,

I think I understand it...

Keeps me only wondering why the behaviour change in pg_basebackup is not implemented for PG14 to 16 as well.

Now you can have a situation in which

a) pg_basebackup and pg_checksums 'complain' consistent about checksum issues in data location

b) pg_basebackup ignores checksum issues on files not owned/managed by postgresql but pg_checksums will still complain about them in the data location.

Or is that what you mean for 'b)' below, an enhancement request for pg_checksums to treat checksums the way pg_basebackup does (pg >= 17)?

It's possible that today's pg_checksums behavior was an oversight,
because pg_checksums.c says

    /*
     * List of files excluded from checksum validation.
     *
     * Note: this list should be kept in sync with what basebackup.c
includes.
     */

and it sure seems like that list is no longer "in sync". But
personally, I don't think that's a backportable change, rather than an
enhancement request for future versions.

I will file a bug report for this issue in github for the third-party extension pgactive. Please let me know if you want me to report an enhancement request or thet you take care about that

Kind regards,

Edwin


On 9/2/26 23:19, Jacob Champion wrote:
Hi Edwin,

On Wed, Sep 2, 2026 at 1:43 PM Edwin Polkerman
<edwin.polkerman@splendiddata.com> wrote:
Yes, the 18.6 and 17.11 global/ directory contains this file as well.
[...]
Because of the difference in behaviour of pg_basebackup what dazzled me, it made me decide to create the issue in the pgql-bugs mailing list. Please let me know if it is not PostgreSQL related and if it should be created in github at AWS/pgactive
It looks like the behavior change in pg_basebackup is by design [1], as of PG17.

I think that's separate from the general question of "do our checksum
tools handle arbitrary third-party files in arbitrary places", and I
think the answer to that is still "no". There was briefly some
discussion on allowing that, IIRC -- but as far as I know, it hasn't
actually been established as a supported feature? (It is clearly not
supported for PG16 and before, so I think a trip to the extension's
GitHub Issues is probably in your future either way.)

It's possible that today's pg_checksums behavior was an oversight,
because pg_checksums.c says

    /*
     * List of files excluded from checksum validation.
     *
     * Note: this list should be kept in sync with what basebackup.c
includes.
     */

and it sure seems like that list is no longer "in sync". But
personally, I don't think that's a backportable change, rather than an
enhancement request for future versions.

Thanks,
--Jacob

[1] https://postgr.es/c/025584a16
--

Splendid Data Nederland B.V.
Binnenhof 62A
1412 LC NAARDEN
+31 85 773 19 99
+31 6 5118 8231

Follow us on LinkedIn
--------------AS4z3OigMBPaS2lCM4Wt90ya--