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 1iS1KV-0004ib-IW for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2019 16:05:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iS1KU-000337-92 for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2019 16:05:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iS1KT-00032z-Th for pgsql-general@lists.postgresql.org; Tue, 05 Nov 2019 16:05:14 +0000 Received: from [212.85.157.172] (helo=mail.dalibo.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iS1KQ-0001iM-97 for pgsql-general@postgresql.org; Tue, 05 Nov 2019 16:05:13 +0000 Received: from firost (unknown [88.190.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id DF0771FAD9; Tue, 5 Nov 2019 17:05:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1572969907; bh=6UE2SMLRmNnyo9sNpR0uhyYhIojo0VVssJ5Oeq08mYU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iVFNBP8eKX8r/2B831mWyuQ2pE/8TjQcq0/F0lRCl/itoN21R/Ewuk46J4aRXm+AW zI4kiDMq1Vs1E+k6Y6C715pa8ammFYAVUZRFH5A5e7aj5KtOPab97pPORlsLFUyHSH Invqy8meGGZRZTBUcmMcEnCiGp2XfZqlPigxk158= Date: Tue, 5 Nov 2019 17:05:05 +0100 From: Jehan-Guillaume de Rorthais To: Peter Eisentraut Cc: Tom Lane , Alvaro Herrera , Tim Clarke , PostgreSQL General List Subject: Re: logical replication - negative bitmapset member not allowed Message-ID: <20191105170505.2f5d38d1@firost> In-Reply-To: References: <20190401214304.GA29208@alvherre.pgsql> <4a16af4e-ba61-e46d-6d69-0a20ef7ed97d@2ndquadrant.com> <20191010151546.69d4f0e9@firost> <20191025173821.6bd76407@firost> Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 212.85.157.172 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 5 Nov 2019 16:02:51 +0100 Peter Eisentraut wrote: > On 2019-10-25 17:38, Jehan-Guillaume de Rorthais wrote: > > On Thu, 10 Oct 2019 15:15:46 +0200 > > Jehan-Guillaume de Rorthais wrote: > > > > [...] > >> Here is a script to reproduce it under version 10, 11 and 12: > > > > I investigated on this bug while coming back from pgconf.eu. Bellow what I > > found so far. > > I have simplified your reproduction steps from the previous message to a > test case, and I can confirm that your proposed fix addresses the issue. Thanks for the feedback and the test case. I wonder if ALTER SUBSCRIPTION DISABLE/ENABLE is useful in the test case? Is it something recommended during DDL on logically replicated relation? If yes, I suppose we should update the first point of the restriction chapter in documentation: https://www.postgresql.org/docs/11/logical-replication-restrictions Regards,