From: Alex Lai <alai@sesda2.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: Khadtare, Sharad <sharad.khadtare@teamaol.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: postgres 9 streaming replication
Date: Fri, 25 Mar 2011 11:34:20 -0400
Message-ID: <4D8CB5FC.6070105@sesda2.com> (raw)
In-Reply-To: <AANLkTim4jZ4Zu2DAha5=HDA=o4d8ch2Tfv10984AYkyp@mail.gmail.com>
References: <951D39B8B6185A4D852967EB943E7AE701CEA042@AOLE1AMEC31.ad.aol.aoltw.net>
<AANLkTikPdd-ZuNf1M4X4X2HLES_iL80Pb=F0W_5oTrAC@mail.gmail.com>
<951D39B8B6185A4D852967EB943E7AE701CEA3AF@AOLE1AMEC31.ad.aol.aoltw.net>
<AANLkTink-M2SLpwchJ8-umvuAyoL5Ji9U4P2UGeXVM0-@mail.gmail.com>
<951D39B8B6185A4D852967EB943E7AE701CEA4A8@AOLE1AMEC31.ad.aol.aoltw.net>
<4D89E28F.80809@sesda2.com>
<AANLkTim4jZ4Zu2DAha5=HDA=o4d8ch2Tfv10984AYkyp@mail.gmail.com>
Fujii Masao wrote:
> On Wed, Mar 23, 2011 at 9:07 PM, Alex Lai <alai@sesda2.com> wrote:
>
>> I have no idea why I keep getting the message:\
>> could not connect to the primary server: FATAL: no pg_hba.conf entry for
>> replication connection from host "slave_server_ip", user
>> "my_super_user_name"
>>
>
> Can you connect from slave to master by the following command?
>
> psql "replication=1" -h <slave_ip> -p 5432 -U <my_user_name>
>
> If successful, the settings in recovery.conf would be wrong.
> Otherwise, I guess that the setting in pg_hba.conf of the master would
> be wrong. Did you reload the configuration files? What happens if you
> use "all" keyword instead of specifying the real user name? What happens
> if you use "0.0.0.0/0" instead of specifying the slave's ip? You would need
> to do trial and error approach.
>
> Regards,
>
>
After changed to all for -U in pg_hba.conf, it connected without
problem. Thanks for your help.
--
Best regards,
Alex Lai
OMI SIPS DBA ADNET Systems , Inc.
7515 Mission Drive,
Suite A100 Lanham, MD 20706
301-352-4657 (phone)
301-352-0437 (fax)
alai@sesda2.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alai@sesda2.com, masao.fujii@gmail.com, sharad.khadtare@teamaol.com
Subject: Re: postgres 9 streaming replication
In-Reply-To: <4D8CB5FC.6070105@sesda2.com>
References: <951D39B8B6185A4D852967EB943E7AE701CEA042@AOLE1AMEC31.ad.aol.aoltw.net> <AANLkTikPdd-ZuNf1M4X4X2HLES_iL80Pb=F0W_5oTrAC@mail.gmail.com> <951D39B8B6185A4D852967EB943E7AE701CEA3AF@AOLE1AMEC31.ad.aol.aoltw.net> <AANLkTink-M2SLpwchJ8-umvuAyoL5Ji9U4P2UGeXVM0-@mail.gmail.com> <951D39B8B6185A4D852967EB943E7AE701CEA4A8@AOLE1AMEC31.ad.aol.aoltw.net> <4D89E28F.80809@sesda2.com> <AANLkTim4jZ4Zu2DAha5=HDA=o4d8ch2Tfv10984AYkyp@mail.gmail.com> <4D8CB5FC.6070105@sesda2.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox