Re: Default libpq application name - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Default libpq application name
Date
Msg-id 17989.1270662321@sss.pgh.pa.us
Whole thread Raw
In response to Default libpq application name  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> I just emailed Dave Page and it seems we don't set a default application
> name in libpq.  Should we do:
>     extern char *argv[];
> and reference argv[0] in libpq to set a default application name?

No.  This is not portable and it's not a good idea even if it were.

The issue was discussed extensively when the patch was committed,
and does not need to be revisited now.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Default libpq application name
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: Win32 timezone matching