Re: Application name patch - v2 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Application name patch - v2
Date
Msg-id 5923.1256075679@sss.pgh.pa.us
Whole thread Raw
In response to Re: Application name patch - v2  (daveg <daveg@sonic.net>)
List pgsql-hackers
daveg <daveg@sonic.net> writes:
> I'd like a default, especially for psql, to help identify interactive sessions.

psql can certainly provide a default, and maybe even do something
actually useful like report the -f file it's running.  The question here
is whether it is worth the trouble for libpq to try to report an appname
*without* the surrounding application's cooperation.  I don't think so.
You are talking dozens if not hundreds of lines of unportable code,
versus one line (per app) of entirely portable code.
        regards, tom lane


pgsql-hackers by date:

Previous
From: daveg
Date:
Subject: Re: Postgres server goes in recovery mode repeteadly
Next
From: Tom Lane
Date:
Subject: Re: Postgres server goes in recovery mode repeteadly