Re: fallback_application_name and pgbench - Mailing list pgsql-hackers

From Takahiro Itagaki
Subject Re: fallback_application_name and pgbench
Date
Msg-id 20100407172158.FCC7.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to fallback_application_name and pgbench  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: fallback_application_name and pgbench  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Fujii Masao <masao.fujii@gmail.com> wrote:

> By default, the application_name of pgbench is "[unknown]". But I think
> that pgbench should use fallback_application_name as psql, pg_dump,
> etc does. Is it worth creating the patch?

If we will take care of fallback_application_name for contrib modules,
we need to fix not only "pgbench" but also "oid2name" and "dblink".
I think those fixes would be worth; at least for telling third-party
developers to handle the new parameter.

It might be better to set fallback_application_name automatically
in libpq, but it requires argv[0] away from main() function.
GetModuleFilename() is available on Windows for the purpose,
but I don't know what API is available on other platforms.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Takahiro Itagaki
Date:
Subject: Re: Set LC_COLLATE to de_DE_phoneb
Next
From: Magnus Hagander
Date:
Subject: Re: fallback_application_name and pgbench