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 1lAmPW-0006DF-CV for pgsql-committers@arkaria.postgresql.org; Sat, 13 Feb 2021 04:19:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lAmOz-0000dT-RC for pgsql-committers@arkaria.postgresql.org; Sat, 13 Feb 2021 04:19:25 +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 1lAmOz-0000dG-Ln for pgsql-committers@lists.postgresql.org; Sat, 13 Feb 2021 04:19:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAmOs-0004uK-Oo; Sat, 13 Feb 2021 04:19:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 11D4JFao1625665; Fri, 12 Feb 2021 23:19:15 -0500 From: Tom Lane To: Amit Kapila cc: Peter Smith , Amit Kapila , pgsql-committers Subject: Re: pgsql: Allow multiple xacts during table sync in logical replication. In-reply-to: References: <1519064.1613099867@sss.pgh.pa.us> <1610789.1613170207@sss.pgh.pa.us> Comments: In-reply-to Amit Kapila message dated "Sat, 13 Feb 2021 09:31:37 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1625663.1613189955.1@sss.pgh.pa.us> Date: Fri, 12 Feb 2021 23:19:15 -0500 Message-ID: <1625664.1613189955@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Amit Kapila writes: > Attached should fix the reported warnings but as I am not getting > those warnings on my system so can't confirm but otherwise, the patch > works as expected. I am planning to push this unless you or Peter have > any comments. Personally I'd get rid of the option for ReplicationSlotNameForTablesync to allocate the result buffer. There's only one caller using that, so it's saving no code to have ReplicationSlotNameForTablesync do the alloc rather than that one caller; and it seems mighty ugly/nonorthogonal to have effectively two different APIs in one function. regards, tom lane