Re: [Proposal] add portaddr like hostaddr

From: Denis Smirnov <darthunix(at)gmail(dot)com>
To: Diego <mrstephenamell(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-08-30 05:11:34
Message-ID: B2EDB5AE-27F7-4580-871E-1C2433BAEF18@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 Richard Guo 2026-08-30 06:50:20 Re: remove_useless_joins vs. bug #19560
Previous Message JoongHyuk Shin 2026-08-30 05:05:50 Re: [PATCH] Prevent repeated deadlock-check signals in standby buffer pin waits