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 1nRSHk-0007Bg-Cp for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Mar 2022 05:21:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRSHj-00082W-Az for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Mar 2022 05:21:23 +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 1nRSHi-00081U-VZ for pgsql-hackers@lists.postgresql.org; Tue, 08 Mar 2022 05:21:23 +0000 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nRSHg-0004UH-NG for pgsql-hackers@lists.postgresql.org; Tue, 08 Mar 2022 05:21:21 +0000 Received: by mail-yb1-xb2e.google.com with SMTP id l2so16026934ybe.8 for ; Mon, 07 Mar 2022 21:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZtZxrc0LnOyV9y5I3zdMmTWZbi8xJI+q6kscMphav5g=; b=kxHJHYC+w7nCchc0fOeitNwTfz7eG+9x1ky6cR065XhOWzCoifredemlxnrHT24W9r leLG6xmYKFmRrO9T17IFAX+jmK/jSgBJsXEYvrVP1Hn/vPpVHBnZBfwsI/GKfBAhw0ir rnfKG4sm5IlbSdyj6h5e3SquUp4yy4FmJsfstkyLCWZS9muQ9JN/EpVd3v5QTGuVuh+8 Ddsmy9EA+R2PVc4QCAhE+C4/f0rFmDOdi0o9o7GCriXnmO5PkuVT9y+tiWhim5Vvj0G/ kvvi9GBKHa6Dhr6zFswxvDyrr5jvfnuopJMRyzRfDaAKa/+ypyT7haEvabA460V9byq+ lrnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZtZxrc0LnOyV9y5I3zdMmTWZbi8xJI+q6kscMphav5g=; b=WM8WOs9dDTILf9HE07EFipWRMs1N1rqC72oPaRM2ZEWF/qJSPN1H0DpeYnEEvq10/J VEcGNNDmZPZVTb15loRNjDtblw4PmHoGka/PuC6NNx1JNrhmGZrzKVGem3/QValOV0GS EfutjgpBl0qRmxP7n16/AyHOjEwF8LdqqjUYmjpQLOBxsMiiQg6EnLJnpdIRPNtohav8 3LpfI0iIC597F0deyPrzvdtx/HG+U/lLOPaGmco8XHnVi3/pQtEhkhwIiMeMj5EcO+IW bm6TStqf3apYNHoTit2EmI/vJKLOZ427mzxycYJxf16uv3agpdxWadJXO9e69gmlOm6z r18Q== X-Gm-Message-State: AOAM530oHmhCGf0IEQvG+JzrMGykkzMPJSxeaN+8QR/c6akUhjo4at1g XcEzlS/rWUrNGXbIiiEXTjKgAThIytFYAQKa900= X-Google-Smtp-Source: ABdhPJwFa2XHV5ySZxj6ZXwHdtvQQl1MNKkh2+X29SPRbc+fkW2Ceur8/SGQf4y/7ZsPYJrJDufOTYAVdaqLzCzRwqw= X-Received: by 2002:a25:d987:0:b0:628:cdcc:8ab1 with SMTP id q129-20020a25d987000000b00628cdcc8ab1mr11058461ybg.448.1646716879436; Mon, 07 Mar 2022 21:21:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Tue, 8 Mar 2022 10:51:08 +0530 Message-ID: Subject: Re: Handle infinite recursion in logical replication setup To: Peter Smith Cc: vignesh C , Ashutosh Bapat , "kuroda.hayato@fujitsu.com" , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 8, 2022 at 10:31 AM Peter Smith wrote: > > IIUC the new option may be implemented subscriber-side and/or > publisher-side and/or both, and the subscriber-side option may be > "enhanced" in future to prevent cycles. And probably there are more > features I don't know about or that have not yet been thought of. > > ~~ > > Even if the plan is only to implement just one part now and then add > more later, I think there still should be some consideration for what > you expect all possible future options to look like, because that may > affect current implementation choices. > > The point is: > > - we should take care so don't accidentally end up with an option that > turned out to be inconsistent looking on the subscriber-side / > publisher-side. > > - we should try to avoid accidentally painting ourselves into a corner > (e.g. stuck with a boolean option that cannot be enhanced later on) > Agreed. I think it is important to see we shouldn't do something which is not extendable in future or paint us in the corner. But, as of now, with the current proposal, the main thing we should consider is whether exposing the boolean option is okay or shall we do something different so that we can extend it later to specific origin ids? -- With Regards, Amit Kapila.