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 1wH7Qv-006sYZ-1G for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Apr 2026 21:54: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 1wH7Qu-00B7zs-0u for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Apr 2026 21:54: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 1wH7Qt-00B7zk-3C for pgsql-hackers@lists.postgresql.org; Sun, 26 Apr 2026 21:54:31 +0000 Received: from mail-dy1-x1331.google.com ([2607:f8b0:4864:20::1331]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wH7Qr-00000003E8a-2tWC for pgsql-hackers@postgresql.org; Sun, 26 Apr 2026 21:54:31 +0000 Received: by mail-dy1-x1331.google.com with SMTP id 5a478bee46e88-2c15849aa2cso12534054eec.0 for ; Sun, 26 Apr 2026 14:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1777240467; x=1777845267; darn=postgresql.org; h=user-agent: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=uvH3SZgqydrVHVcNy3JkYqFWi/6vrjzW/hTAryHzCIE=; b=BjbyZ2rrgFZ7ioe68qGsoDbUnRCUh6yeNfxDBItvQ0aHHvH9yoPj34MPlWhAOwiwQ4 Bah6Do6CkSRsmy+lsNVff2Q1yhP47WoN+amgYIRyqVqGGl2bFBWRbROFccwEXFpWgoS7 zTIG8rrpN1Gx/yAiS8HrOASXDAFvnSXkQwMXU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777240467; x=1777845267; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=uvH3SZgqydrVHVcNy3JkYqFWi/6vrjzW/hTAryHzCIE=; b=ZPY7hhKZwvHSSSs5JdvkRzFD030edNf06gjN0Ab1PqvQR/4Wdhetxtk4Yw+rjjDDKB Ma6JiS1jEu+qDTVzHJFxB0+q+FSCMeaU/IrnQMDDmLMowrCZcgc9mDBH/5U+xUvGJRTU XWQzzzz5JJqJTdR8U5rASR3n4cYboXH8T6YEXQa5Yhq+kkxJmQHGKSb17A4JK4R5IbuW nTPU3SZTbvrO/tvpHQh+trydXsbRs0fxRCRfIBOxTupmx40HtAfVUyUkbXnqmr/Ilw+3 OY2UqV6nCIe0DwCYVKXf47+f8AS2qtOvkGuU9SnYFcaPVLbxxDFrlX1Li2h/cSESVxLu Ladg== X-Gm-Message-State: AOJu0YyOpJ/4NHkXoCxCZV3xD0txgbXQaamWt5qd8fugojFKpoQp3QoO IPsj1r4G14qysDCewWLLwrM0FyIGG+fs1t+YBWx1vUc5H6EGGPRuuk/HNY5S0YdWvg== X-Gm-Gg: AeBDiesZ+umrbm7W+c+u0nTpQBjmBheYoUJmdXsWwZfxGuYiLtNlz4QuJ8lwQt8t+9F qKYlD904gyz/3DSUrksfNp8iIQXATByj4qTO23D05grdKKauoK13Kg93BdSAx+40c7k0QcqV0u3 vc8XkhIr0pJnc/9k77xS01MO0CpXVtMUcGOBOd6Xo9fZPwgIhMJJnSBTHDRotWE5ogf0XQsSKdo D1QLNdQ9GSAuYviAzCUY/t2aJbmD0GD/l1nzDPiFC+/GbZCq4NiaSNGFwRl/Cja029xdI12Sd3V N53hCOFWXWZVRe+9Iq5GbZqmSVOIcDs6iwCl4qoZqeU0L5WdwFV19dEYId1kovbzxUuI8CsTxSU 5XFYXYNBHoMtWxEzFInk2/XTEoKjXxEltbrZ7t1PYpE+zeUHEMEyk1HLxSoCWFylNkTgiMqlF9y XDLiZxUK79Kp0y5xmKCJ4x7x6jw5TFzVbwTLjN/Aj/Eq/x7cSJHJKXiQBBJNFN8h75QL7KwQ== X-Received: by 2002:a05:7300:641b:b0:2d1:d434:d022 with SMTP id 5a478bee46e88-2e4521f9d92mr20868917eec.0.1777240467287; Sun, 26 Apr 2026 14:54:27 -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-2e53a4a8bd2sm39995924eec.11.2026.04.26.14.54.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Apr 2026 14:54:26 -0700 (PDT) Date: Sun, 26 Apr 2026 14:54:25 -0700 From: Noah Misch To: Daniel Gustafsson Cc: PostgreSQL Hackers Subject: Re: Separators in pg_hosts.conf fields Message-ID: <20260426215425.82@rfd.leadboat.com> References: <20260426213252.7a@rfd.leadboat.com> <9E767D01-08A1-4DF1-8122-B11AD932C8BA@yesql.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9E767D01-08A1-4DF1-8122-B11AD932C8BA@yesql.se> 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 On Sun, Apr 26, 2026 at 11:40:13PM +0200, Daniel Gustafsson wrote: > > On 26 Apr 2026, at 23:32, Noah Misch wrote: > > > > 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: > > Ugh, thanks for reporting. > > > * 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? > > Yes, only the hostname field is a comma-separated list. I think this should be > added to the documentation as well on top of the test fix in your patch. Do you anticipate docs like "this isn't a list, but the file's general parsing rules require quotes if there's a comma"? Or something different? > Do > you want me to take care of both parts? That's fine. I also don't mind pushing what I sent.