Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YamLi-0003SL-6B for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2015 14:32:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YamLh-0003iL-Ju for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2015 14:32:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YamLf-0003g3-RY for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 14:32:00 +0000 Received: from nm16-vm3.bullet.mail.ne1.yahoo.com ([98.138.91.146]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YamLb-0000st-8Y for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 14:31:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1427293911; bh=fkhwx7MV/mGu970I7gTgOeLr4FdM7c4Zx8u6e71g9e0=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=AezhgvWG3fdZENBAS6va/+Mx8q+L7FbLw6zUfYVwtqRiJ+toTarZSMHBUVZVbIz1VvwJ/b66mcUqjC/9vws4922q12mhU0u6ey0SiMc+lRgJSNtPI3u4+6QoogC92cxUFZOMshl5mizTwkJ0Xa5pb+DkkGBcFE4kh+RbZAczfSHfXy1vF9uP4Mp81z6heZ8b8l2ecVN3JY4BrfDnK/UcD3OSmqI8onWZQxJG/qNYssmSfdF+RsrpY1+nwijaJ3Ha1Z/WnN4/j58YJWlBMD7679iCXB/WfKYfW5cKzsEHlYkYV6jhuO2FVjdUbURzZuyc1+sp17jUoV81KAehT2NXoA== Received: from [98.138.101.130] by nm16.bullet.mail.ne1.yahoo.com with NNFMP; 25 Mar 2015 14:31:51 -0000 Received: from [98.138.89.250] by tm18.bullet.mail.ne1.yahoo.com with NNFMP; 25 Mar 2015 14:31:51 -0000 Received: from [127.0.0.1] by omp1042.mail.ne1.yahoo.com with NNFMP; 25 Mar 2015 14:31:51 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 22144.10876.bm@omp1042.mail.ne1.yahoo.com X-YMail-OSG: XMUwBOkVM1nc1QQ8UDRV8NOFpEFeG5hrxJuUBXqkUrj4LurFkjZ8zYGRD01MRi6 z_Sq_VOErenzcP_upn3WuHW_FGspYoxa_YEduemq4h2F1YMQ7SAyK7rx258xpVEvGveXlG2Mh3zg eBnMFt5OcEMpw6J811SGTeQjCWyU3WXeLpsoym1cy313vxuXwib1pdJjnLwehVpuMKIEnnocxR0u 8zTvi2xdRV7C9rW8fSYzKYBGrgxw8G5esR0FjQaiXoTEtMS8TTTjcKpSka.r6J6jFeBZwSJSuAn5 rfo.xeeO.D3OaUOgpgJEA3W3lOYxmqVjAHBH_wfdI53X8nFOpv48Pdtl._Fr_fIqo1_t2w90s6ay iM64.GY6mn9aiAGV0SVxsfJ7VfNX_NN8a1p5xhL0qvsrqY09y6YcPcX_vcMVncMdAPO7Voceww2C OrXuQUYXTYLJxMtLbPOCf6qCifSMNY7h5vCVgzeYE2QV8uT.dw0fbY1IcBH3.2NplJNpFgyj4BCW wJ3jGVMlCsLgccG1bF7UesQfUJ3UFKHhO2m1XT1NvPgij81sKiBspmVFlaGzfSGpeTaTyoaflKTk u9JqxSdRGqcAYF8ERg4o- Received: by 98.138.105.212; Wed, 25 Mar 2015 14:31:50 +0000 Date: Wed, 25 Mar 2015 14:31:47 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: =?UTF-8?Q?S=C3=A9kine_Coulibaly?= , "pgsql-bugs@postgresql.org" Message-ID: <1904087945.1280154.1427293907628.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: 1377 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: > synchronous replication. When a transaction is received by the > master before the slave is up and running, the transaction seems > blocked forever on the backend. This is not a bug. The promise made for synchronous replication is that when a commit returns an indication of success, the transaction has been persisted on at least two clusters. If you don't want that promise yet, don't turn on synchronous replication yet. If you want that guarantee but you want the primary to be able to continue to commit transactions when there is a failure of a synchronous replica, then provide more than one synchronous replica. There was discussion of supporting a "don't actually provide that guarantee, but kinda try when it's responding fast enough", but that was rejected as being so close to asynchronous replication as to not really add any value. All it would do is stall the successful return of a commit request without actually giving you any stronger guarantee than asynchronous replication. Effectively, any product that behaves that way is just giving you a false sense of security. If you don't need the guarantee of a second copy of the transaction having been persisted to a second cluster, use asynchronous replication. -- 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