Re: [Proposal] add portaddr like hostaddr

From: Diego <mrstephenamell(at)gmail(dot)com>
To: Denis Smirnov <darthunix(at)gmail(dot)com>
Cc: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [Proposal] add portaddr like hostaddr
Date: 2026-09-04 14:11:52
Message-ID: a797f74e-5ef6-421b-b555-e6fceb9fed40@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vitaly Davydov 2026-09-04 14:15:58 Re: Deadlock detector fails to activate on a hot standby replica
Previous Message Jan Nidzwetzki 2026-09-04 14:09:56 Re: [PATCH] Fix PITR pause bypass when initial XLOG_RUNNING_XACTS has subxid overflow