From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | Chris Angelico <rosuav(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to print application_name in log_line_prefix (using %a)? |
Date: | 2012-10-29 13:53:34 |
Message-ID: | 508E8A5E.3030208@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 10/29/2012 04:00 AM, Chris Angelico wrote:
> On Mon, Oct 29, 2012 at 5:44 PM, Tianyin Xu <tixu(at)cs(dot)ucsd(dot)edu> wrote:
>> Got it! Thanks, Chris!
>>
>> I still wonder why application_name appears in the configuration file if it
>> cannot take effort :-P
>
> Not sure what you mean by that, but my postgresql.conf doesn't have
> anything about application_name. But if it did, it would be a default
> that an application can override.
Actually it does:
log_line_prefix = # %a = application name
# %u = user name
# %d = database name
http://www.postgresql.org/docs/9.2/interactive/runtime-config-logging.html#GUC-APPLICATION-NAME
....
It is a chicken and egg situation. See section 31.1.2. Parameter Key
Words of below:
http://www.postgresql.org/docs/9.2/interactive/libpq-connect.html
"application_name
Specifies a value for the application_name configuration parameter."
>
> ChrisA
>
>
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Angelico | 2012-10-29 13:57:28 | Re: How to print application_name in log_line_prefix (using %a)? |
Previous Message | Albe Laurenz | 2012-10-29 11:44:08 | Re: oracle_fdw with oracle os authentication |