Re: walreceiver fallback_application_name - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: walreceiver fallback_application_name
Date
Msg-id AANLkTinrMB1QwNPw3ZsAJ0kZ03=dMJE0E4hGtE8gz6nR@mail.gmail.com
Whole thread Raw
In response to Re: walreceiver fallback_application_name  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
On Mon, Jan 17, 2011 at 10:57, Magnus Hagander <magnus@hagander.net> wrote:
> On Mon, Jan 17, 2011 at 04:05, Fujii Masao <masao.fujii@gmail.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/


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Bug in walreceiver
Next
From: Magnus Hagander
Date:
Subject: Re: pg_stat_replication security