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/