Re: Default libpq application name

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Default libpq application name
Date: 2010-04-07 17:45:21
Message-ID: 17989.1270662321@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2010-04-07 18:36:27 Re: Win32 timezone matching
Previous Message Bruce Momjian 2010-04-07 17:41:33 Default libpq application name