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 1x2UeA-005ndF-17 for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2026 14:12:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x2Ue8-007A0X-2y for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2026 14:12: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 1x2Ue8-007A0O-1y for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2026 14:12:00 +0000 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x2Ue5-00000002vLO-1OKn for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2026 14:12:00 +0000 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-857ff9fef54so10992787b3.1 for ; Fri, 04 Sep 2026 07:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788531115; x=1789135915; 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=AuIThL5/G4A8irsvULuVJqy2qdHsRJRgV7pm65NqPfY=; b=bYt6VXJtnb9ptw6NjHdXFCkdF3XBN/5rL/pJh34SD9mUVTb2RFW2uORkLWZfO0mo8G gGfxUTLuUkXoQ3+kuJ8yEkjTM5jTx9pSzYinyYUiJuY8RX+jKsNYg6LFMan8F5cyzrCE SviSZMFN4f27euciU+7fx2f54nW7VCxdI8iz5pAfjBl/Xd3Tamrm2kMhuhEu/g2COY10 VdyhHkyUpNvFg5c2IxIy+MaxS4/cse03MLEiOxpYlRQbu+Wv8dy4s7D65lq/WMXbpomw /Sz9udlADDp+nG0WQf3S86/K8UpJgBtw3HSlNgNEJELGLEYyvelysuCRonmfXE91Q0It D2xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788531115; x=1789135915; 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=AuIThL5/G4A8irsvULuVJqy2qdHsRJRgV7pm65NqPfY=; b=pfC/teAyNQRjwY/Y9GF6JI81GVvrLfJvpy66ENdLAa9R+P7sbTJT73wjbTUgIk6CXv 7M8eF1+tIsPAhXjBrBV0xD5j8AUI/mYPCAC8VkvObkFmflv004RR0W50fFOdoQ8hb9pb u3lLumBpg5Os8QZqAs0Y9OXa4Qy+FWbwNJLvjkaL6zv0Nx3EnxF8PIxAJssJFj6+0Dv8 votvOaJkHqSvNuMyxHASRPj2fvv/Fl62nieaWw9aaijWJb3WPEgcgXcG2mjXVuXTleFp tEmbaU9UH8NzBghwcM31oozr32YTad1h0N9M1s8zoIrNIB34as9aKUaayVuxs86M+XY5 baZg== X-Forwarded-Encrypted: i=1; AKwUvBzsTKKeTHA4bijbPodEl6ipXERsKpuMLp8by/+8satjUqdzsMxc218gH7fM1URwRdiK++matbHVAOFzIAIE@lists.postgresql.org X-Gm-Message-State: AFuF++kjQOVgqWz+70dlQAnpk2YoJVq3e2RiP9dfYQxv0lEbadDUC9fI WUBM+bI0ehoRxEjqywxxbSAgeGjADn8KtV9QTuzjPBitnauszA3sR8OG X-Gm-Gg: AYBFou2WWkjtnqL38/YvGmdfS6w8qhKYt2Q90ajoWh2pbtOYlnfkZ34p05VSzWjUeUN ILk4R28Xr4RyCnfEOPs1rRP5DIvdgiynsuctNKRLeuI3TID4I9FkD6xyb1G45PrXchW7uaK8uQW fN7FIQAK/NEXyr1mNCtAyN5ZcT1gvEyu5C052BCNu2JMTC4vOCXM6qG9FbpJPdWd7hZ/ihpmjGI W2z3uAGAEtUs6SS38BlBUx1UXF+0V2f4tnUW/NEsq1VKYvcm/BJrHVcsjgMGMC9ahftxmQTwzrJ RIaorHOIubaM/SURWv+8imxgfxhtIVekfs5eLlpxk5n9BaPJzrYFDu7VdTYw8LQfqcdWvESvjlJ oFa4GAwrjEfmZZZ3UpbjGgGLbyrFPbcXfkUyUBMpU7MGn6stUstbHEiLVSX9TLx9nPfXfCxfSps RphFUwwv4ppV9igm96tR71B4ykIVO68AEQyMpsNGvSgjDN8q0Jyh2jRv0R02uOH+f6i0/a7Uw= X-Received: by 2002:a05:690c:d91:b0:873:5bb2:6c02 with SMTP id 00721157ae682-8735bb26fa7mr4531107b3.44.1788531115252; Fri, 04 Sep 2026 07:11:55 -0700 (PDT) Received: from [192.168.88.177] ([201.180.204.81]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8714bef8930sm18575107b3.46.2026.09.04.07.11.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Sep 2026 07:11:54 -0700 (PDT) Message-ID: Date: Fri, 4 Sep 2026 11:11:52 -0300 MIME-Version: 1.0 User-Agent: Betterbird (Linux) Subject: Re: [Proposal] add portaddr like hostaddr To: Denis Smirnov Cc: Jacob Champion , 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> <92e93ea7-0c09-4fb2-b6ce-4f43cf444ebb@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, Done! Patch posted in a new thread: [PATCH] libpq: Add PQpassfileLookup() https://postgr.es/m/b650e555-11c7-415d-8bda-c747c492ab4a@gmail.com Thank you again for the suggestion. BR, Diego On 2026-08-30 02:11, Denis Smirnov wrote: > Hi Diego, > > I think a better solution would be to expose the existing > passwordFromFile() code through a new public libpq API, perhaps > PQpassfileLookup(). > > Then pgcli could look up the password using the original host and port, > and connect to the local tunnel port with that password. This would avoid > both a new connection parameter and a separate .pgpass parser in each > client. > > I would be happy to review such a patch. I think this would be a useful > addition to PostgreSQL. > > > Best regards, > Denis Smirnov >