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 1x00hB-004Omh-23 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2026 17:48:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x00h9-008bR1-18 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2026 17:48:51 +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.96) (envelope-from ) id 1x00h9-008bQX-0A for pgsql-hackers@lists.postgresql.org; Fri, 28 Aug 2026 17:48:51 +0000 Received: from mail-vk1-xa33.google.com ([2607:f8b0:4864:20::a33]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x00h7-00000002sZU-1Oam for pgsql-hackers@lists.postgresql.org; Fri, 28 Aug 2026 17:48:50 +0000 Received: by mail-vk1-xa33.google.com with SMTP id 71dfb90a1353d-5c675de8e1dso425369e0c.2 for ; Fri, 28 Aug 2026 10:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787939328; x=1788544128; darn=lists.postgresql.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+VE0RmYXEpsxH/r8RyNxevQ9VVKPrNey/HYogSX9rAc=; b=X0IoZmDUAPzdAmD/fiejri1LlWJUVMTqxFSvG6fZvkcwVAsWSgNliuO36avYEzWRm2 u4n9snI8uvSR59STkFf9jdqCZHyiDu9hjCz+1cjZ84irrEQU9SVvaaQP0ViicueOVT0C CUh1IhZ1C0BSzF9fB/dyqDI/So4g9TdeZ4ROXJIBPIS0w0iZJLGNbJQeF6z+EVPaRGk1 f6yjJOS87AU6OaJbeog5pePAL6Jr0m1Xn8JnXBjoHe2PCGRaa2GiupHsyp90AxM4HpjV Oxa1J9zWQKO6PUGugspppcRALK9HhLldAekk2LO06/mbAVc+urmaG4dUyx18138cer49 xRVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787939328; x=1788544128; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+VE0RmYXEpsxH/r8RyNxevQ9VVKPrNey/HYogSX9rAc=; b=GeBVrkcNwIFPwX/veSHholP1ucz2QaKQlAUD0l8wcn1iBFHFNIYr52Al46+7oqTtVq 5W2jMslj7sea4OdGIoneip2gByhXdd9LNCIEYErFrnDQWaXPJ1v9treOFk+PO3/Vd422 8+vU5yfB4ZLf+suzpmj6t7WR1wS8APUzG7PBUqwPsCWUvNNMiRcurF+Z2ixNftvvPQGI uvymQNLkWqZO2fZOSSAQ9B78htSGSjMHQrHQuH2pFOxj6dtP8biDqwRmYQ6qQq5OmEFk eJPrM1TXv1SvvDA4jtXxOcmAPWP4mcZqv0VVd1W9D+0RYoRGdzWJD/egn0H4iyfyNPeV BR0w== X-Gm-Message-State: AFuF++lgfIJYk82opSDkkqT3g/GSfGgWMgXbtH8dUCAFNH7ooHCH6tWR r4xSrw/F2iotq2WUz88FX2Z4gjZV8uSfLvC+7mxs+u870cWtJdK15Pda X-Gm-Gg: AR+sD12aWbduAD+O1AmrYlaFPIBbCjSiXbLSMSTQbq8iwf+PRzw76GIFvTn+MvlK1g5 W2htGe8xkHhPI0DJlpmYirjsumfuqEllEcUfBI3fbqGUkNbJJeCdQvIfA3ielxacgLI/6oKHZ5H Wn0DIzYRNRfLQfUbLi7+SL6MGQurevP7FebRvc5gMHPcr8hQXB+gexc43HT2YLXI7ZAwNUjosCG uX1RESqHDlO2bq9Ym9NfZzJnVLWA9eYAGlqLeBSYskS3WH9DJt9fjFz8TVona18cnrHG9YphANg 4+zKAJ6BQZASjP+kG5SvlR29ceFezKVyGRxL2CitvJWfbVTZKZe2tqSeg4m+L8bYNrFpBKx+xml KueBdK4XN0loszZ9nmSDEHkRJStIaf1oG9F1PTc/vTvXWbE7DKgkF8eLSZg1te/4q+xraZN5Y+N 4YUX/0Ovy3SnU9Fgkm5XkOSrSIkyJAI3q15WBpIJyjyUEDROT4R7yNTmUf8QodsMZQQIR+O1T0 X-Received: by 2002:a05:6102:1589:b0:779:5049:87b2 with SMTP id ada2fe7eead31-78593425ac4mr2887084137.0.1787939328451; Fri, 28 Aug 2026 10:48:48 -0700 (PDT) Received: from [192.168.88.177] ([201.180.249.203]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-785f77de582sm1643249137.7.2026.08.28.10.48.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Aug 2026 10:48:47 -0700 (PDT) Message-ID: <92e93ea7-0c09-4fb2-b6ce-4f43cf444ebb@gmail.com> Date: Fri, 28 Aug 2026 14:48:44 -0300 MIME-Version: 1.0 User-Agent: Betterbird (Linux) Subject: Re: [Proposal] add portaddr like hostaddr To: Jacob Champion , Denis Smirnov Cc: pgsql-hackers@lists.postgresql.org References: <70436540-9d77-4014-89af-462881ed18d9@gmail.com> <1e3b609e-4cf7-4c39-8770-8248c8b81399@gmail.com> <63F7ADE6-DF8F-4261-9FEC-89A381E57E6A@gmail.com> <71685CE0-477D-4E4B-ADFE-D3CC3873512C@gmail.com> <636a2d5b-adaf-45d7-a255-870682a8cc73@gmail.com> Content-Language: en-US From: Diego In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Denis / Jacob! Thank you both for the time you put into this, including reading the pgcli code. > I think Denis has this right. You're misinterpreting what host and > hostaddr "mean", in a broader sense, and so the suggested split of > port/portaddr is drawing a parallel where none exists. Point taken. Spelling out what convinced me: when hostaddr is present, host keeps real name-based duties, TLS server name and certificate check, GSSAPI principal. The port coordinate has no counterpart for any of those; the only consumer of a "logical port" would have been the passfile lookup. That is too little to hang a host/hostaddr-style split on, so I'm dropping portaddr and withdrawing the CommitFest entry. > Maybe there are good features that would help the UX for a local SSH > tunnel, but I don't get the sense that this is one. May I take you up on that? The residual case is a tunnel on a dynamic local port: no passfile line can be written in advance, and a client that wants to keep .pgpass working today has to reimplement the passfile parser on its side. The first version of this proposal [1] was a narrowly scoped, lookup-only knob (passfileport): it only changes the port used in the passfile lookup, and claims nothing about identity, PQport(), or the socket. Is that a shape worth refining, or do you see this whole thing as belonging client-side, full stop? Independently of that, I would like to send a small doc patch for the pgpass section documenting the workaround that exists today (host + hostaddr, fixed local port written into .pgpass); the same confusion keeps resurfacing in client issue trackers. [1] https://postgr.es/m/c0dfc226-9fbd-450b-a470-00f5427077a4@gmail.com Thank you, BR, Diego