Re: [PATCH] Add support for displaying database service in psql prompt - Mailing list pgsql-hackers

From Noah Misch
Subject Re: [PATCH] Add support for displaying database service in psql prompt
Date
Msg-id 20250706161319.c1.nmisch@google.com
Whole thread Raw
In response to Re: [PATCH] Add support for displaying database service in psql prompt  (Greg Sabino Mullane <htamfids@gmail.com>)
List pgsql-hackers
On Wed, Dec 18, 2024 at 03:17:36PM +0900, Michael Paquier wrote:
> Done.

This new PQservice() function from commit 4b99fed75 came up in the annual
exports.txt diff.  The standard in libpq has been to not clutter the API with
new functions that simply retrieve one PQconninfoOption value.  PQconninfo()
provides access to all those values in a generic way.  What do you think of
making psql use PQconninfo() for this, then removing PQservice()?  The rest of
the commit (adding the struct field, necessary for PQconninfo() to include the
value) looks good.



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: SQL Property Graph Queries (SQL/PGQ)
Next
From: Noah Misch
Date:
Subject: Re: Issues with 2PC at recovery: CLOG lookups and GlobalTransactionData