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 1nNCyM-0007hM-Bq for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 12:11:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNCyJ-0005Vc-GE for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 12:11:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNCyJ-0005R4-5e for pgsql-hackers@lists.postgresql.org; Thu, 24 Feb 2022 12:11:47 +0000 Received: from [66.111.4.28] (helo=out4-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNCy9-0008R0-Un for pgsql-hackers@lists.postgresql.org; Thu, 24 Feb 2022 12:11:46 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 43D495C0F90; Thu, 24 Feb 2022 07:11:26 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 24 Feb 2022 07:11:26 -0500 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:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=VSQ1qlj/dgGtVhPuPoqDUm5RFY7T3UwRRj8u5iPaJ EE=; b=cBfiKXaIxgFY210K9b4Gpq0/kA86wD+AzWfD+OejRvGlj21j9hEhjT0Ez hhEw/Sw+cHqYAJtfaSdnU9apv9LjqEfvv8apFdl4JKq7YwMlgbMMURMe8mTDQeGc GA86GF0e2evu1Gy1+KPmJvT1qixv7viWAMm1Dl44ATRH20GuHRRUldErEqlFbaCF tZiaBrmulSYdUQhbhrWdpsmEg4jiBEbUGlXWANVbbMimr9n5mNLtkuXMCuVSyUmU jjwhXhgnbdb2xQ1Gk1DGFwAtxWH8DbGB62IYx6fAtgGy+4yhI5UAfT4GzYuNfHZH 59mIQSSAe/x1Jrug9Jb6Q50Utz4fg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrledvgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeegheetuefhveevudel ueeftdejteeiffetvdduhfdtieefgfeutedtveeggfenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Feb 2022 07:11:24 -0500 (EST) Message-ID: Date: Thu, 24 Feb 2022 13:11:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: logical decoding and replication of sequences Content-Language: en-US To: Amit Kapila , Tomas Vondra Cc: Petr Jelinek , PostgreSQL Hackers References: <90b4e402-3f07-14f4-deca-5eaca31f70a3@enterprisedb.com> <22aef14d-0ea1-9044-c2e7-29f88762eaec@enterprisedb.com> <32540e16-fab6-f790-b99b-5a8fca8bde52@enterprisedb.com> <3B014BE4-EE61-4834-8FF6-937B43C46BC7@enterprisedb.com> <3d68b45a-ceb5-6824-3a39-f53411fd0c88@enterprisedb.com> <802f8b1b-a798-be52-c829-7f0fb9faafd5@enterprisedb.com> <983bf0c7-9757-fd13-3896-8452cf4c4c52@enterprisedb.com> <9211312a-6501-1caf-ee7b-c0d4814b6091@enterprisedb.com> <41ada110-bc7c-32a3-08bd-fb5023dd74ba@enterprisedb.com> <2eed0f76-3a1a-8b8b-ac1b-e0f9a0d98287@enterprisedb.com> <9defb937-20a9-1d9f-6972-f1c4b4da4f73@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.28 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 23.02.22 12:10, Amit Kapila wrote: > Isn't it better to support this with a syntax as indicated by Tom in > one of his earlier emails on this topic [1]? IIUC, it would be as > follows: > > CREATE PUBLICATION p FOR ALL TABLES, ALL SEQUENCES; I don't think there is any point in supporting this. What FOR ALL TABLES was really supposed to mean was "everything you can get your hands on". I think we should just redefine FOR ALL TABLES to mean that, maybe replace it with a different syntax. If you want to exclude sequences for some reason, there is already a publication option for that. And FOR ALL SEQUENCES by itself doesn't make any sense in practice. Are there any other object types besides tables and sequences that we might want to logically-replicate in the future and whose possible syntax we should think about? I can't think of anything.