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 1wOvVZ-000HvZ-2T for pgsql-hackers@arkaria.postgresql.org; Mon, 18 May 2026 10:47:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wOvVX-001kd3-0p for pgsql-hackers@arkaria.postgresql.org; Mon, 18 May 2026 10:47:36 +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 1wOvVW-001kcu-36 for pgsql-hackers@lists.postgresql.org; Mon, 18 May 2026 10:47:35 +0000 Received: from mail-oo1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wOvVW-00000000AkY-0Fav for pgsql-hackers@lists.postgresql.org; Mon, 18 May 2026 10:47:35 +0000 Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-6949192b840so352494eaf.3 for ; Mon, 18 May 2026 03:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779101252; cv=none; d=google.com; s=arc-20240605; b=HF9QdXnPI0tyTvpF/sm6EgbVOvolyxUvgVbeiALrcBEUCpr4z8blhq9TTTIhIpLn9+ FEuxV5atOXADsFvV4ygP4xvPmg7y2RUoAoachgeVSQn294VY760QJsTEuTwha9aXkedC PgC1JD2SIvmf5iIRPsSjBvSF1ofepCl4S9MmCkvBSVVV9HW6ekGWdkFTn20cBd61i+ws k6MqUY6SgwsfQqrWgfQsJCOJ+cRn9QoN6bDlvY7pOZ+UfnT2CsDbM9JJ0SJDQmtSPaXx WE/ML18QiNRUh35Us/Zvg82pUHwrtvqoftY1UQtpPETDivBjVa6b6dFKxEsB9sUN/7pq 2GuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DOIUjbY5Hfg4d27oDYvM/8D9gjK4euKvcANcQys4s5s=; fh=//yq4Tmr3BwYA+MQHPG8/ZAzA/+INE9wuIAfqtiKt/g=; b=GNwMSF8SEJC33k3ZDg1y1A6kiyuITssBxwz8dmJnL0UQd93uAkIFXtfknfYi33p0oE T1srnvyoUb6kz6pIOhVFweNEojfjXpik76ad/h5RnSoyaKovCm2J0fVVT7fbuIedOnlv 5j3sSe184TTTirpjwOWxIxsbSeF/xG4eK2EB3vqxgYLzUr46dggVUhpr7RamtnC+BMk3 V36fqku11d97nE5NIWo+mNbyD7ORfBPpL79blaK2jG8pE+qUkiMXkUlA1F7WXULT3ZJE UUUfxixXsMdJ6swXJAPER9eEdUcI8TjXHKV+5vbroWnkYw4TxTa6bcdHx5+odNZZ+63e ESKQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779101252; x=1779706052; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DOIUjbY5Hfg4d27oDYvM/8D9gjK4euKvcANcQys4s5s=; b=kaAqGnouXp2PMYdYgUgh66rf8V8lVftJo8H17N0YazyGfk5qG5kkj5XctdzvXWJchQ zy6VU8E/dRFyowV4ESo6xAPjZT+p42JEKeMBbOEv+d69XrPBIhEVXHCON8bDVAZGX9KI PjepCVRNNh7+fdPb4xIB3gxU0h0IK0G9Hv1VQJcSgW1t4nnhNu+63aGI9mLSuPUkueb9 0RHk6QkRjbRnLPnGhnJkhCRh//G6HelES8v1FxcEH6FQ4DddQOe66FOBXEsqwgPVyFcl rANjl3uBN/1tt0DLhX3cHBNdnTMhpt7ZjIhpweJz8nuNI3T9uCNdcwpCk4takf5A2XpU CjQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779101252; x=1779706052; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DOIUjbY5Hfg4d27oDYvM/8D9gjK4euKvcANcQys4s5s=; b=gnnHiHuHs9FuDEB98Pf7esGQM7y7OcrMbdwOYSbgQk83s8h6wfim9zyqw3q29A0XEU MGOVhmOiycUpvlsdDqrHyMDr7fuhX3FDLFkjlr7ZeMIuZORLWYu2fIodmKWsXrLZFmds rNUZWXYs1nVOpzdS7jmSMH4qyhcrwr9e2EhzOVqsroxKWLouQX0F6NDoXUSUHSGfRgOn jvRVuxc4C1sTkSQ5mbyeDI3Fk6/zeoX/Ft37PI4rcXVEzsrUBvV5FXnTiMsWD+gJs02O oEXeQuLEY5HTCFuOlxhqseNNYX9lS4EkUAnE+HtkICWC+nLoBDbky6Q7o3Uoi55dkt3D Zc9w== X-Gm-Message-State: AOJu0Yye4rbzqCcJwzJ0qt22OlYy0fTVAprfhmqFxCeYgrIc79B9Vxx0 3OA3uRPZLRJ1/I2E5JNX/rQ0mhUwVc3gIE9a9HARMLL/Dxe6SzG7cTVdwT+I+cxYOFiXugl6Twh PH9E3mZjS9j9chj53n6DgcNAQ7okJnI4= X-Gm-Gg: Acq92OEY4sDej2QfRkbaX9e6ycEMZaL0eQ5auaVvxJN6zOIoqS6HII+Vde8jx56hbxR WXaXhTnvAgur8E0vpTXdgdUrZ/z8oqxY+FTSZiOCBjm4wAhz6ujoMCiCr61N7nnENG+fbxEsHJ+ lhS4GdDG1d2WlRGrb9Ww4OjkMhjOdEXxNQUfIyZMQocKNuL26Vz/V1sMzbyFFc1lflpEHb8LNmT XGzr8pOAadJi+3jVGeGy+vF1e2xZ5mF0dSHb9Ax4b1jzVMpkVYZMgqO0FsG3O94v0LIb9jd7HS8 cAoyl4YvQzRlSlYE2XCdDLLFMav6Ong7hGD3d/MjxKJlvAumnrhJ X-Received: by 2002:a05:6820:2210:b0:69b:8ff9:f582 with SMTP id 006d021491bc7-69c942ea069mr9790811eaf.14.1779101252184; Mon, 18 May 2026 03:47:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fujii Masao Date: Mon, 18 May 2026 19:47:15 +0900 X-Gm-Features: AVHnY4KWUlZqRIAZCFqVaTW1XhHLo3KNk9QXXkMmzBCYgkVTaytI-IPTbr2goGc Message-ID: Subject: Re: pg_recvlogical: honor source cluster file permissions for output files To: Srinath Reddy Sadipiralla Cc: PostgreSQL Hackers 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 On Sun, May 17, 2026 at 12:22=E2=80=AFAM Srinath Reddy Sadipiralla wrote: > i have reviewed, tested the patch and it LGTM, Thanks for the review! > i think we can add > a TAP test to verify the group permission, attached a diff patch > for the same, Thanks for the patch! The test you added checks that pg_recvlogical creates output files with mode 0640 when the cluster is initialized with group access enabled. However, it does not check the opposite case, i.e., that pg_recvlogical creates output files with mode 0600 when group access is disabled. It seems we should test both cases, similar to what 010_basebackup.pl does? As far as I can tell, 010_basebackup.pl initializes the cluster without gro= up access and checks the backup permissions, then enables group access using chmod_recursive() and verifies that group permissions are also applied to the backup. I updated the TAP test following this approach and attached a revised patch. >> I think this should be backpatched to all supported branches. > > > +1 I'm currently thinking of backpatching the fix itself to all supported bran= ches, but adding the test only to master. Because it does not seem worthwhile to spend much time backporting the test to older branches, where the test code differs much from master. Thought? Regards, --=20 Fujii Masao