pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Diego <mrstephenamell@gmail.com>
To: Denis Smirnov <darthunix@gmail.com>
Cc: Jacob Champion <jacob.champion@enterprisedb.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [Proposal] add portaddr like hostaddr
Date: Fri, 4 Sep 2026 11:11:52 -0300
Message-ID: <a797f74e-5ef6-421b-b555-e6fceb9fed40@gmail.com> (raw)
In-Reply-To: <B2EDB5AE-27F7-4580-871E-1C2433BAEF18@gmail.com>
References: <70436540-9d77-4014-89af-462881ed18d9@gmail.com>
	<1e3b609e-4cf7-4c39-8770-8248c8b81399@gmail.com>
	<63F7ADE6-DF8F-4261-9FEC-89A381E57E6A@gmail.com>
	<ee1051ac-a37e-4f97-901b-fa4dc96400d9@gmail.com>
	<71685CE0-477D-4E4B-ADFE-D3CC3873512C@gmail.com>
	<636a2d5b-adaf-45d7-a255-870682a8cc73@gmail.com>
	<CAOYmi+n7n9rnOzzcH4wzVpg7Ac6zqCx_RrYSOiw-qYBMiv_2sA@mail.gmail.com>
	<92e93ea7-0c09-4fb2-b6ce-4f43cf444ebb@gmail.com>
	<B2EDB5AE-27F7-4580-871E-1C2433BAEF18@gmail.com>

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
> 







view thread (11+ messages)

Message-ID: <a797f74e-5ef6-421b-b555-e6fceb9fed40@gmail.com>
Permalink:  ../a797f74e-5ef6-421b-b555-e6fceb9fed40@gmail.com/
Also on:    postgresql.org/message-id/a797f74e-5ef6-421b-b555-e6fceb9fed40@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: mrstephenamell@gmail.com, darthunix@gmail.com, jacob.champion@enterprisedb.com
  Subject: Re: [Proposal] add portaddr like hostaddr
  In-Reply-To: <a797f74e-5ef6-421b-b555-e6fceb9fed40@gmail.com>
  References: <70436540-9d77-4014-89af-462881ed18d9@gmail.com> <1e3b609e-4cf7-4c39-8770-8248c8b81399@gmail.com> <63F7ADE6-DF8F-4261-9FEC-89A381E57E6A@gmail.com> <ee1051ac-a37e-4f97-901b-fa4dc96400d9@gmail.com> <71685CE0-477D-4E4B-ADFE-D3CC3873512C@gmail.com> <636a2d5b-adaf-45d7-a255-870682a8cc73@gmail.com> <CAOYmi+n7n9rnOzzcH4wzVpg7Ac6zqCx_RrYSOiw-qYBMiv_2sA@mail.gmail.com> <92e93ea7-0c09-4fb2-b6ce-4f43cf444ebb@gmail.com> <B2EDB5AE-27F7-4580-871E-1C2433BAEF18@gmail.com> <a797f74e-5ef6-421b-b555-e6fceb9fed40@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox