Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo8fK-0001Fk-HN for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2013 09:22:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vo8fJ-000538-DI for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2013 09:22:41 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo8fG-00052A-Rj for pgsql-hackers@postgresql.org; Wed, 04 Dec 2013 09:22:38 +0000 Received: from moutng.kundenserver.de ([212.227.17.10]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo8fD-0006qq-HV for pgsql-hackers@postgresql.org; Wed, 04 Dec 2013 09:22:38 +0000 Received: from anarazel.de (p5DDC5FC6.dip0.t-ipconnect.de [93.220.95.198]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0MDxhX-1Vov5B1ci7-00HMX0; Wed, 04 Dec 2013 10:22:34 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 89BF31006CF; Wed, 4 Dec 2013 10:22:33 +0100 (CET) Date: Wed, 4 Dec 2013 10:22:33 +0100 From: Andres Freund To: KONDO Mitsumasa Cc: fabriziomello@gmail.com, Pgsql Hackers Subject: Re: Time-Delayed Standbys Message-ID: <20131204092233.GA26559@awork2.anarazel.de> References: <52984711.8040806@lab.ntt.co.jp> <529E8FE6.6040209@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <529E8FE6.6040209@lab.ntt.co.jp> Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:aem23wxQw8zmgAP/oe6f6GHqsuO+CBH5StjiPEIheqp U0eJUbDyuK2dNJHkDmlcQ6SrfBSt/xi9QSymVzYNeDDwQ1Woxk sSplRMC7wUjBhIPwT+8LeMuaFltqxbW0P/tOtscz7x2ae6t4g4 yXr4u9smnkKfAfQ+j2NFqtodoYbTw46wQr3DOBgOW1y/6sPq9m 6/vd7oXQ7OOFiwPBK8K5klAM4OtZMqHbLaIyQ6vHkx5ui9j0yx x4EUTmP9Vwo+udzy2+x81MITM92apJEVwZXJjUjitPoa8gaVu7 l02L17V2P9rDB9bKz2Xp8qv/OqavQFgYoImpVUe5fFrj6bn0B+ QmC2j41w1sCqYOHTk0/+x5Cgi/TkfA/qJTEbKQLz2 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2013-12-04 11:13:58 +0900, KONDO Mitsumasa wrote: > >4) Start the slave and connect to it using psql and in another session I= can see > >all archive recovery log > Hmm...=E3=80=80I had thought my mistake in reading your email, but it rep= roduce again. > When I sat small recovery_time_delay(=3D30000), it might work collectry. > However, I sat long timed recovery_time_delay(=3D3000000), it didn't work. > My reporduced operation log is under following. > >[mitsu-ko@localhost postgresql]$ bin/pgbench -T 30 -c 8 -j4 -p5432 > >starting vacuum...end. > >transaction type: TPC-B (sort of) > >scaling factor: 10 > >query mode: simple > >number of clients: 8 > >number of threads: 4 > >duration: 30 s > >number of transactions actually processed: 68704 > >latency average: 3.493 ms > >tps =3D 2289.196747 (including connections establishing) > >tps =3D 2290.175129 (excluding connections establishing) > >[mitsu-ko@localhost postgresql]$ vim slave/recovery.conf > >[mitsu-ko@localhost postgresql]$ bin/pg_ctl -D slave start > >server starting > >[mitsu-ko@localhost postgresql]$ LOG: database system was shut down in = recovery at 2013-12-03 10:26:41 JST > >LOG: entering standby mode > >LOG: consistent recovery state reached at 0/5C4D8668 > >LOG: redo starts at 0/5C4000D8 > >[mitsu-ko@localhost postgresql]$ FATAL: the database system is starting= up > >FATAL: the database system is starting up > >FATAL: the database system is starting up > >FATAL: the database system is starting up > >FATAL: the database system is starting up > >[mitsu-ko@localhost postgresql]$ bin/psql -p6543 > >psql: FATAL: the database system is starting up > >[mitsu-ko@localhost postgresql]$ bin/psql -p6543 > >psql: FATAL: the database system is starting up > I attached my postgresql.conf and recovery.conf. It will be reproduced. So, you brought up a standby and it took more time to become consistent because it waited on commits? That's the problem? If so, I don't think that's a bug? Greetings, Andres Freund --=20 Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers