pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Denis Smirnov <darthunix@gmail.com>
To: Diego <mrstephenamell@gmail.com>
Cc: Jacob Champion <jacob.champion@enterprisedb.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [Proposal] add portaddr like hostaddr
Date: Sun, 30 Aug 2026 12:11:34 +0700
Message-ID: <B2EDB5AE-27F7-4580-871E-1C2433BAEF18@gmail.com> (raw)
In-Reply-To: <92e93ea7-0c09-4fb2-b6ce-4f43cf444ebb@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>

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)  latest in thread

Message-ID: <B2EDB5AE-27F7-4580-871E-1C2433BAEF18@gmail.com>
Permalink:  ../B2EDB5AE-27F7-4580-871E-1C2433BAEF18@gmail.com/
Also on:    postgresql.org/message-id/B2EDB5AE-27F7-4580-871E-1C2433BAEF18@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: darthunix@gmail.com, mrstephenamell@gmail.com, jacob.champion@enterprisedb.com
  Subject: Re: [Proposal] add portaddr like hostaddr
  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>

* 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