Re: no pg_hba.conf entry for replication connection from host

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Volkan Unsal <spocksplanet(at)gmail(dot)com>
Cc: Melvin Davidson <melvin6925(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: no pg_hba.conf entry for replication connection from host
Date: 2015-04-10 19:51:36
Message-ID: 552829C8.6020904@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/10/2015 12:34 PM, Volkan Unsal wrote:
> Hi Adrian,
>
> I think there are some commands that are being run in single user mode,
> which is why we are seeing these lines in the output.
>
> https://gist.github.com/volkanunsal/1778cf691223e77f2e30#file-master-log-L57-L58
>
> But I believe the server itself is started in the interactive mode (if
> that's the right term for it) because immediately after those lines, you
> also see this
>
> https://gist.github.com/volkanunsal/1778cf691223e77f2e30#file-master-log-L59-L61
>
> My tests showed there are no LOG outputs if the server was started in
> the single user mode.

I would disagree:

postgres(at)killi:~> /usr/local/pgsql94/bin/postgres --single -D
/usr/local/pgsql94/data/ <<-EOSQL
CREATE DATABASE test_db;
EOSQL



PostgreSQL stand-alone backend 9.4rc1

backend> LOG: statement: CREATE DATABASE test_db;


backend> postgres(at)killi:~>

I see nowhere in your init-master.sh where Postgres is restarted.
Check ps ax | grep postgres on your primary to see what is actually
running. Could be that the single user mode is shut down and a regular
instance is started up, but with different settings then you think. We
still have not explored where the Postgres in your containers are coming
from and how they are set up in image: mdillon/postgis:9.3.

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Edson Richter 2015-04-10 19:51:58 Intermitent connection could corrupt slave database?
Previous Message Volkan Unsal 2015-04-10 19:34:33 Re: no pg_hba.conf entry for replication connection from host