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 1wH767-006sKB-21 for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Apr 2026 21:33:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wH764-00B3PB-2z for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Apr 2026 21:33:00 +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 1wH764-00B3P3-1G for pgsql-hackers@lists.postgresql.org; Sun, 26 Apr 2026 21:33:00 +0000 Received: from mail-dy1-x1329.google.com ([2607:f8b0:4864:20::1329]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wH761-00000003E05-39mD for pgsql-hackers@postgresql.org; Sun, 26 Apr 2026 21:32:59 +0000 Received: by mail-dy1-x1329.google.com with SMTP id 5a478bee46e88-2d96243c91fso15476523eec.1 for ; Sun, 26 Apr 2026 14:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1777239175; x=1777843975; darn=postgresql.org; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=+RdQcvu46HSrgWgya76mXRfQlY1Q9jgwFPCQeyNkCpw=; b=I0mU2z9DMCNUrBH9sUrY9nnrsTrKuGKm2fX7qvjoibVjgLrjNBpuIGBl0wtOhI0Q2J /DhPjNrCwO2O9i2nbzQoV3dpd0HYaiNe0hAGhltVGr6WS5ZN2LTC8ADjUWzS5MsLxjjh 7vWzkh+l6Kalc7YaoiloCmb2N1MwnoInje1p4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777239175; x=1777843975; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+RdQcvu46HSrgWgya76mXRfQlY1Q9jgwFPCQeyNkCpw=; b=re6t0ahWQOI4AjpsPTWvNLqrB2wChDFVRnhlhEjPosmQhUogz9TGZFDLAljW8aZJl/ VJ1GTB3zRxrDoB4maJnBXWkyZMfSq0Eyl3Igy7nq3rlx4pj14GJ738/oY60CgKOqnjBQ Bm2ibK/0HyAESuw6kOw6Yss7XAglV6PA+42UT1acITiX/9k3usWtK90KFz3NCd/lZsav dvSqV0EFHdqDUL/yZ2MWYGStvgCn2bZP2CB7oHYJlZoh2NNchyldrV0mVom1JtOVW9u4 R8ddW6SkFblpWavydnvTbIlC/RR4xYB83hjuXuDVyGNXg/sopX8M6XkcyqnVwWjGYRyk rS9A== X-Gm-Message-State: AOJu0YxvqmxoRFR9LcVN1jX0FluEwt9csYfBytQsAVIdO06QehYJN8OH ID9lnSDfpkm5ev1g1E8L04BuBXsTAkldPsyANpovZaGRL1QLnes03exESEAY3GUhd5mFrQPLSCz UbKU= X-Gm-Gg: AeBDievPN5kjwVqgn6usjLJwfBxpz5sU6BMCpMRuHyHfARjJ4TdWXZ9GTezGVOElTWo mZaMAT8PI2fwSgPHizBo6P/HhGrHYV4tST4cnBO8oKaznj7GroONtdQ/VYmhYkVueDuymnHnxsV PftC4cm+zGOm2qjcPbN1G//ujM4gHtUrLxF1ETKZVu2pwFYcHMbMDyxSWH+nYQUz1KVsi8PUrPH kjew6q4L5jA/ufdKrhZZipmK0fjl/tZ+zWvNc1LZAec/XHHuVIgGXKJwA5c+BfaixS59NcQR7sV qtmj3pEwxuHrPV4sDvlQjINQlUk1RSy5KbrqUqyQM31pgGlKeuEgpIJbQLuP+VHUC8AMoEnLnaj IDMLbceI5SoxQZ6vH7irIM1AlbOlvWQF9+cJQVUWlnGUVYZpcJhQYbr7cKe2Sa0xL/HPPJYCgRf G4NyQXtyBWoPj2BeNu7c6ZinAJphEBqrkF6X4euMBDWb4TDz1p7bUTn7ZkgOeL2ddrNeebeQ== X-Received: by 2002:a05:7300:d717:b0:2e2:a64b:63b5 with SMTP id 5a478bee46e88-2e479c08fa4mr24426636eec.18.1777239174657; Sun, 26 Apr 2026 14:32:54 -0700 (PDT) Received: from rfd.leadboat.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e53ccce0f5sm40833589eec.17.2026.04.26.14.32.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Apr 2026 14:32:53 -0700 (PDT) Date: Sun, 26 Apr 2026 14:32:52 -0700 From: Noah Misch To: daniel@yesql.se Cc: pgsql-hackers@postgresql.org Subject: Separators in pg_hosts.conf fields Message-ID: <20260426213252.7a@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="B9vpBcCNKuCOr/Zw" Content-Disposition: inline User-Agent: Mutt/2.3.0 (2026-01-25) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --B9vpBcCNKuCOr/Zw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline If the build directory name contains a comma, src/test/modules/ssl_passphrase_callback fails on master since commit 4f43302. It fails because hba.c:next_token() treats a comma as a token separator: * Tokens can be delimited by double quotes (this allows the inclusion of * commas, blanks, and '#', but not newlines). As in SQL, write two * double-quotes to represent a double quote. Commit 4f43302 documented the pg_hosts.conf hostname field as a comma-separated list, but not the other fields. Should other pg_hosts.conf fields continue to require quoting around commas, or not? --B9vpBcCNKuCOr/Zw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=comma-test-sni-v1.patch commit 4649408 (HEAD, master) Author: Noah Misch AuthorDate: Sun Apr 26 13:56:22 2026 -0700 Commit: Noah Misch CommitDate: Sun Apr 26 14:26:08 2026 -0700 Fix new test under comma in build directory. Quote pg_hosts.conf fields derived from the build directory, since hba.c:next_token() treats a comma as a token separator. Commit 4f433025f666fa4a6209f0e847715767fb1c7ace introduced pg_hosts.conf and this test. A build directory name containing a comma worked before that commit. A build directory name containing a quote character has not worked, so don't handle that. --- src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl b/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl index 09ff536..d8b07d4 100644 --- a/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl +++ b/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl @@ -90,8 +90,8 @@ ssl_sni = on }); $node->append_conf( 'pg_hosts.conf', qq{ -example.org $ddir/server.crt $ddir/server.key "" "echo FooBaR1" on -example.com $ddir/server.crt $ddir/server.key "" "echo FooBaR1" on +example.org "$ddir/server.crt" "$ddir/server.key" "" "echo FooBaR1" on +example.com "$ddir/server.crt" "$ddir/server.key" "" "echo FooBaR1" on }); # If the servers starts and runs, the bad ssl_passphrase.passphrase was --B9vpBcCNKuCOr/Zw--