Re: [HACKERS] Default libpq application name

2010-04-07 Thread Tom Lane
Bruce Momjian 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. Th

[HACKERS] Default libpq application name

2010-04-07 Thread Bruce Momjian
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? -- Bruce Momjian http://momjian.us EnterpriseDB http://e