Thread: Re: [PATCH] Add support for displaying database service in psql prompt
Re: [PATCH] Add support for displaying database service in psql prompt
From
Greg Sabino Mullane
Date:
Compiled and tested: works fine, so +1 from me. Honestly, I was surprised %s was still available. :)
Cheers,
Greg
Hi, On Tue, Nov 19, 2024 at 07:47:58PM -0500, Greg Sabino Mullane wrote: > Compiled and tested: works fine, so +1 from me. Honestly, I was surprised > %s was still available. :) Thanks. Was that full review? You kept the commitfest item in "Needs Review" state. Michael
Hi, On Wed, Dec 18, 2024 at 03:17:36PM +0900, Michael Paquier wrote: > On Tue, Dec 17, 2024 at 09:42:36AM +0100, Michael Banck wrote: > > Done. > > > > V3 attached. > > Done. Thanks! Michael
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.