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 1mT5ZI-0004Py-IU for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Sep 2021 16:58:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mT5ZH-0005vu-G7 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Sep 2021 16:57:59 +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 1mT5ZG-0005vm-1J for pgsql-hackers@lists.postgresql.org; Wed, 22 Sep 2021 16:57:59 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mT5ZB-0004PZ-1W for pgsql-hackers@postgresql.org; Wed, 22 Sep 2021 16:57:57 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D93675C006E; Wed, 22 Sep 2021 12:57:50 -0400 (EDT) Received: from imap21 ([10.202.2.71]) by compute1.internal (MEProxy); Wed, 22 Sep 2021 12:57:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=8ck7Spt0FfdvpDOiGDdJ7sGEMzoZMCK Xa/wohjC08QE=; b=FtOYMkIdAQ1kAuqlZyrBJOz0Kc+440iSEq8OqNxTMp4cXiG gHPqUwH7AZdUph0fyF4nQTQoVnzNmizAuucOKHCk0cyQ09MDVeV8WwJoZ7O7ut0f /XAhpqO2+i9UxktnUuC7Vv6tJPJq0m8cwjKEEv7uiE71QMAfYAdGdrnRIJKndjrq DpeWE0WHEIQGyn+nx3vLOq5hhX2uuBvnPmvszsWR7WocAqCPhcKWh3MU/9OxtJs/ YrYewn0SPIZ/xWIvFn9EW9v2u0Nb7tD5R/AOfy4pB9tOfQ+/ug2sw6qUeswXWzBR xlq9MxzrzIvwY34sNM4EvyE4e3vPM7YyKDMp4ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=8ck7Sp t0FfdvpDOiGDdJ7sGEMzoZMCKXa/wohjC08QE=; b=PtkKJUbTYQQtb7IfbLvaWD kmujHvPB+NA9I36k0bp/j6BlO2+ah1/1jvT5u0hmg8/2/5AM1CP0pCnR3PzhHa1H E+zMWLL9MxnPeBobLKvz8djMBQy4htNR6ZusoR/wbK877z24iqSvknDDJcI0yzID A60qlFxaQUrKjT0b6yGm4JMT5CjhTf2VTr+BzhZFR6/BGNUeJSPeAupUW7/gq8vt xjliG3nz+Q5q/iB3RpzogbPWawTkBLUfiN2Rs8yD/MkgvyW+W/pvAkUbNo3FMC0j i2kkLVKWsZHeqeuImjTnllbGFetsNdzQaD82HpvrNI1Zzb6hDZtPkC7OwWTbw3mw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeijedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsegrtderreerreejnecuhfhrohhmpedfgfhu lhgvrhcuvfgrvhgvihhrrgdfuceovghulhgvrhesvghulhgvrhhtohdrtghomheqnecugg ftrfgrthhtvghrnhepiefftdfgvdeghfeggfdtjedtffefvdfgueffgedtffefudeiuedv hefggeevleeknecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvuhhlvghrsegv uhhlvghrthhordgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 336FE51C0060; Wed, 22 Sep 2021 12:57:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1302-gc62ab821ef-fm-20210921.001-gc62ab821 Mime-Version: 1.0 Message-Id: <73b06a32-56ab-4056-86ff-e307f3c316f1@www.fastmail.com> In-Reply-To: References: Date: Wed, 22 Sep 2021 13:57:29 -0300 From: "Euler Taveira" To: "Amit Kapila" , "Marcos Pegoraro" Cc: pgsql-hackers Subject: Re: logical replication restrictions Content-Type: multipart/alternative; boundary=df050943fdad441089a6bce7f7f47ca7 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --df050943fdad441089a6bce7f7f47ca7 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Sep 22, 2021, at 1:18 AM, Amit Kapila wrote: > On Tue, Sep 21, 2021 at 4:21 PM Marcos Pegoraro wr= ote: >> No, I=C2=B4m talking about that configuration you can have on standby= servers >> recovery_min_apply_delay =3D '8h' >>=20 >=20 > oh okay, I think this can be useful in some cases where we want to avo= id data loss similar to its use for physical standby. For example, if th= e user has by mistake truncated the table (or deleted some required data= ) on the publisher, we can always it from the subscriber if we have such= a feature. >=20 > Having said that, I am not sure if we can call it a restriction. It is= more of a TODO kind of thing. It doesn't sound advisable to me to keep = growing the current Restrictions page [1]. It is a new feature. pglogical supports it and it is useful for delayed secondary server and if, for some business reason, you have to delay whe= n data is available. There might be other use cases but these are the ones I re= gularly heard from customers. BTW, I have a WIP patch for this feature. I didn't have enough time to p= ost it because it lacks documentation and tests. I'm planning to do it as soon = as this CF ends. -- Euler Taveira EDB https://www.enterprisedb.com/ --df050943fdad441089a6bce7f7f47ca7 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Wed, Sep 22,= 2021, at 1:18 AM, Amit Kapila wrote:
On Tue, Sep 21, = 2021 at 4:21 PM Marcos Pegoraro <marcos@f10.com.br> wrote:
No, I=C2=B4m talking about that configuration you can= have on standby servers
recovery_min_apply_delay =3D '8h'
=
=


oh okay, I think this can be useful in som= e cases where we want to avoid data loss similar to its use for physical= standby. For example, if the user has by mistake truncated the tab= le (or deleted some required data) on the publisher, we can always it fr= om the subscriber if we have such a feature.
Having said that, I am not sure if we can call it a restrict= ion. It is more of a TODO kind of thing. It doesn't sound advisable to m= e to keep growing the current Restrictions page [1].
It is a new feature. pglogical supports it and it is= useful for delayed
secondary server and if, for some busi= ness reason, you have to delay when data
is available. The= re might be other use cases but these are the ones I regularly
=
heard from customers.

BTW, I have a WI= P patch for this feature. I didn't have enough time to post it
=
because it lacks documentation and tests. I'm planning to do it as = soon as this
CF ends.


--
Euler Taveira

--df050943fdad441089a6bce7f7f47ca7--