Re: libpq: Add PQapplicationname() function - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: libpq: Add PQapplicationname() function
Date
Msg-id CAKFQuwZucqaCncNFGqEzYnP2WWonEDv-uR2ycA1LCoAg=No5Tw@mail.gmail.com
Whole thread Raw
In response to libpq: Add PQapplicationname() function  ("songjinzhou" <tsinghualucky912@foxmail.com>)
List pgsql-hackers
On Tuesday, April 29, 2025, songjinzhou <tsinghualucky912@foxmail.com> wrote:
Dear hackers, here is a libpq function: PQapplicationname(), I think it may be of some use. 

You really should provide at least one reasoned use case for why this should exist.
 

Looking forward to your reply, thank you.


This isn’t even the correct code to use for this.  PQparameterStatus is where you’d access application_name.  I don’t see a good reason in providing multiple ways to get access to the same data value.

David J.

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: What's our minimum supported Python version?
Next
From: "Euler Taveira"
Date:
Subject: Re: Disallow redundant indexes