Re: walreceiver fallback_application_name

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: walreceiver fallback_application_name
Date: 2011-01-17 10:44:35
Message-ID: AANLkTinrMB1QwNPw3ZsAJ0kZ03=dMJE0E4hGtE8gz6nR@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jan 17, 2011 at 10:57, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> On Mon, Jan 17, 2011 at 04:05, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>>> diff --git a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
>>> b/src/backend/replication/libpqwalreceiver/libpqwalreceiv
>>> index c052df2..962ee04 100644
>>> --- a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
>>> +++ b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
>>> @@ -92,7 +92,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
>>>     * "replication" for .pgpass lookup.
>>>     */
>>>    snprintf(conninfo_repl, sizeof(conninfo_repl),
>>> -            "%s dbname=replication replication=true",
>>> +            "%s dbname=replication replication=true
>>> fallback_application_name=postgres",
>>>             conninfo);
>>
>> Also the size of conninfo_repl needs to be enlarged.
>
> Oh, nice catch. Worked perfectly in my testing, but I see why it
> should be increased :-)

Applied with change name and the extension of the buffer.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2011-01-17 10:51:45 Re: pg_stat_replication security
Previous Message Heikki Linnakangas 2011-01-17 10:29:48 Re: Bug in walreceiver