Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4DFo-0006GE-Km for pgsql-committers@arkaria.postgresql.org; Wed, 13 Mar 2019 23:25:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h4DFn-0007Ms-F5 for pgsql-committers@arkaria.postgresql.org; Wed, 13 Mar 2019 23:25:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4DFn-0007Fq-4h for pgsql-committers@lists.postgresql.org; Wed, 13 Mar 2019 23:25:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4DFk-000612-La for pgsql-committers@lists.postgresql.org; Wed, 13 Mar 2019 23:25:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x2DNPb3X024620; Wed, 13 Mar 2019 19:25:37 -0400 From: Tom Lane To: Thomas Munro cc: Michael Paquier , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Use condition variables to wait for checkpoints. In-reply-to: References: Comments: In-reply-to Thomas Munro message dated "Thu, 14 Mar 2019 12:02:24 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24618.1552519537.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Mar 2019 19:25:37 -0400 Message-ID: <24619.1552519537@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Thu, Mar 14, 2019 at 11:02 AM Thomas Munro wr= ote: >> Use condition variables to wait for checkpoints. > BF animal "loach" is blaming a recoveryCheck failure in > 016_min_conistency on this commit. I wonder if there some timing > dependency in that new test that broke when CHECKPOINT became faster. Uh, yeah, I'd say it's pretty obvious: the failure is error running SQL: 'psql::1: ERROR: relation "test1" does not exis= t LINE 1: SELECT count(*) FROM test1; ^' while running 'psql -XAtq -d port=3D57404 host=3D/tmp/8ItZDq6QmQ dbname=3D= 'postgres' -f - -v ON_ERROR_STOP=3D1' with sql 'SELECT count(*) FROM test1= ;' at /usr/home/pgbf/buildroot/HEAD/pgsql.build/src/test/recovery/../../..= /src/test/perl/PostgresNode.pm line 1331. and if you look at the test script, there is no sort of wait for the creation of "test1" to propagate to the slave before we try to query it on the slave. We'd have seen this fall over soon enough with or without your commit. regards, tom lane