Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlTi3-0003T0-3z for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2022 10:55:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nlTi1-0005NI-Mv for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2022 10:55:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlTi1-0005If-CX for pgsql-hackers@lists.postgresql.org; Mon, 02 May 2022 10:55:17 +0000 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlThz-0005wg-4v for pgsql-hackers@lists.postgresql.org; Mon, 02 May 2022 10:55:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 6661F2B01500; Mon, 2 May 2022 06:55:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 02 May 2022 06:55:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1651488912; x=1651496112; bh=jcoI3YakGc6F3L4WKNyN9t6W7QxA cBfxgZtvKfZ+ZSE=; b=HUjWK8WaaIfZ2dj6RIFyi+Rt+5+nBt0epj4RfgU677vy JGVAFooHUJ+zhL6lG4UV3OgjMg4ARzCIRtdGJ+tLzeiKvMLGbi+ClxbGqoDQUR57 STcaM73QwdE0lof4mG1PoVB3w9wcyZ2ZOEH2rdqqUXiDdM+oWqyey07rDqniHuS3 Kf/cDozzdcQoUDupoumGdhhQtrUjrxFxiBou1gnIonZgBj5WsNquKo+NL4/zVXNe wnAUoB0jy1C1/ksegA/xUUqL7WMedkfMQVpq4+NqvLYp6RLGTHSzc1PxXOyi7Uo9 oME2OZ8Wq66iZaYjMXCdmUgJc+JuXihbhfEwHorQDA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenog fuphgrmhdqkffkrffuuhhmmhgvrhculdehuddvmdenucfjughrpeffhffvvefukfggtggu gfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlh hvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedv kedtffduffdtffffheffhfejjefhgfeiueeukeejkeffgfdufffhudffffeuveenucffoh hmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqd hiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 May 2022 06:55:12 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6EE4F2A0FD1; Mon, 2 May 2022 12:55:10 +0200 (CEST) Date: Mon, 2 May 2022 12:55:10 +0200 From: Alvaro Herrera To: Tomas Vondra Cc: Amit Kapila , Peter Eisentraut , Pg Hackers Subject: Re: bogus: logical replication rows/cols combinations Message-ID: <202205021055.kobwph2lidwi@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <37755ade-9fae-fec0-6602-e5b496c2a95c@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-May-02, Tomas Vondra wrote: > On 5/2/22 12:17, Alvaro Herrera wrote: > > The latter ultimately means that we aren't sure that a combined > > subscription is safe. And in turn this means that a pg_dump of such a > > database cannot be restored (because the CREATE SUBSCRIPTION will be > > rejected as being inconsistent). > > We could do this check when executing the START_REPLICATION command, no? Ah! That sounds like it might work: we throw WARNINGs are CREATE SUBSCRIPTION (so that users are immediately aware in case something is going to fail later, but the objects are still created and they can fix the publications afterwards), but the real ERROR is in START_REPLICATION. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Uno puede defenderse de los ataques; contra los elogios se esta indefenso"