Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0EA1E1337BF6 for ; Fri, 25 Mar 2011 12:32:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 90389-01 for ; Fri, 25 Mar 2011 15:32:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sesda2.com (postman.sesda2.com [63.68.157.115]) by mail.postgresql.org (Postfix) with ESMTP id 59B271337BD1 for ; Fri, 25 Mar 2011 12:32:45 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by sesda2.com (Postfix) with ESMTP id 763628E40BB; Fri, 25 Mar 2011 11:24:34 -0400 (EDT) X-Virus-Scanned: amavisd-new at sesda2.com Received: from sesda2.com ([127.0.0.1]) by localhost (postman.sesda2.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 878C1dINBmJX; Fri, 25 Mar 2011 11:24:34 -0400 (EDT) Received: from [192.168.200.162] (unknown [192.168.200.162]) by sesda2.com (Postfix) with ESMTP id 593E18E40AF; Fri, 25 Mar 2011 11:24:34 -0400 (EDT) Message-ID: <4D8CB5FC.6070105@sesda2.com> Date: Fri, 25 Mar 2011 11:34:20 -0400 From: Alex Lai User-Agent: Thunderbird 2.0.0.24 (X11/20101213) MIME-Version: 1.0 To: Fujii Masao CC: "Khadtare, Sharad" , "pgsql-bugs@postgresql.org" Subject: Re: postgres 9 streaming replication References: <951D39B8B6185A4D852967EB943E7AE701CEA042@AOLE1AMEC31.ad.aol.aoltw.net> <951D39B8B6185A4D852967EB943E7AE701CEA3AF@AOLE1AMEC31.ad.aol.aoltw.net> <951D39B8B6185A4D852967EB943E7AE701CEA4A8@AOLE1AMEC31.ad.aol.aoltw.net> <4D89E28F.80809@sesda2.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.409 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, SARE_SPEC_REPLICA=0.72, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: ** X-Archive-Number: 201103/332 X-Sequence-Number: 29842 Fujii Masao wrote: > On Wed, Mar 23, 2011 at 9:07 PM, Alex Lai 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 -p 5432 -U > > 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