Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YanQq-0003LW-EP for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2015 15:41:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YanQp-00051E-FG for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2015 15:41:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YanQn-000513-PO for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 15:41:22 +0000 Received: from nm26.bullet.mail.ne1.yahoo.com ([98.138.90.89]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YanQe-0001nJ-Sa for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 15:41:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1427298071; bh=jWxJFmrC0WNL7remZzjhU47Zw6MU2jhJTuB1SUonPAA=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=N651oZKgGfwXuYc18is5o+nLRqGwBMf40Z7Q8zMbl5MtMhtfun7cK7l3LcGhhzwUewidaLrs/FzBjvhKj1cOUH5A7pCZXVrTkXIp7Yt92erGAgS10KURnb4DILsTHRfZVD0hIwUleTVbAZlDUrUxYOL43tUaf3pk2pPtPPNGCzU5D+AYFbF2vBg5RS162cSL61xq+N1rjSsr3PSXHVBeKnYWxFsfIhgn4fcYswqz3Oh+i2VJXGkqyJYr/29ONEGKSnhJaJVkpzrt+skSE4ykwR2kRRZ+UXNKNYYxj3zv80XZo5hX36t+Al8KcA+B4bXosgmeAVbgI7wqZSt6drhiHQ== Received: from [98.138.101.131] by nm26.bullet.mail.ne1.yahoo.com with NNFMP; 25 Mar 2015 15:41:11 -0000 Received: from [98.138.88.234] by tm19.bullet.mail.ne1.yahoo.com with NNFMP; 25 Mar 2015 15:41:11 -0000 Received: from [127.0.0.1] by omp1034.mail.ne1.yahoo.com with NNFMP; 25 Mar 2015 15:41:11 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 152127.93291.bm@omp1034.mail.ne1.yahoo.com X-YMail-OSG: ib1iYvIVM1nyT.S4SM4snRON1LaomCtzNysjkugGpUZchK0UI_nF9nkccTIwQzO LuRhJgZVYp.1B8dpoS.9IoII3K9kjENLe_uw9GInYPlTdo1o3evAHOhkwOn3ogdfxWQIHTWWMlUB A55.wFBcqCHHle_.FlmwpQr4IgrBPFppu1mtk7fU3hObOfRfdIGmLTqqtAT_pPr6fqmV5jfOSTbd yLHLW.oMci1ZQImRWUtpFTItk.IDRyVK9o3sRZ8uE_CwrDol1mFCxbvnDT80SG4_rQ81s050b7aS T9rhkYsweDldZwPH525XIsMZxFbqTzCPgI05BkWU7YIAThjHX89NPagfXo4B7j.UHvhZHTpN575K OLAqNigvANvGj63xb4pm4tfn1c9MVzYCnZ3tmxC7bt3Ry2htbXhIMiH7t9b2lCwsIIGboug7Snod o6GnCCA4CBcjdZqX7WLbltymg.ZeOsoXqm2PX41MMUHCQMC7pCyu10_P.99LplIDcNXGUhHffYfh FsyrsSsErXw0oW22jQ3c1Kg9NMKMoMG7qmcKDboVdiXj3nwQr.kA9i9eoUKVKp0nnTjFIxRNo21_ cDROospXfnQWF9D9iqsP2xX3jktN8yxFMBy_HOGu6zxSK35Csy6bvSGOcdO3ksCK7VJOylnOTAr5 FNWMdDMH6WFqdS8c0WNI30vI4 Received: by 98.138.105.249; Wed, 25 Mar 2015 15:41:10 +0000 Date: Wed, 25 Mar 2015 15:41:10 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: =?UTF-8?Q?S=C3=A9kine_Coulibaly?= Cc: "pgsql-bugs@postgresql.org" Message-ID: <1746945482.1336595.1427298070295.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: "no-slave yet" early CREATE TABLE transaction gets blocked when synchronous replication MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Length: 1430 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org S=C3=A9kine Coulibaly wrote: > I indeed want the security brought by synchronous replication. > Having a commit no to return as long as the replica is not > up-and-streaming is what I expect and perfectly fits my needs. It > is perfectly right in my use case for the master to wait for the > replica as long as necessary. Asynchronous replication is > definitely not what I want. > > My concern here is that, although the slave is back, the pending > commit is not performed on the master side. I apologize for misunderstanding what you were experiencing. > I'd expect all ongoing and blocking commits to be unblocked as > soon as the slave pops in. Indeed they should. > Since the master and slave are synchronous after the slave is > back, what's the point in holding a transaction forever in the > master's backend ? I know that a number of bugs for this sort of edge condition have been fixed since 9.2.4 was release (on 2013-04-04). I strongly recommend that you apply the latest bug-fix roll-up for the 9.2 branch, which is currently 9.2.10. http://www.postgresql.org/support/versioning/ If you still see such behavior with the most recently released bug fixes, please post again, attaching the configuration files and showing log entries (from both clusters) from around the time the slave is brought up. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs