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 1pIUnc-0008Cm-0n for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2023 13:17:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIUna-0000Gl-SO for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2023 13:17:46 +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 1pIUna-0000Gc-Da for pgsql-hackers@lists.postgresql.org; Thu, 19 Jan 2023 13:17:46 +0000 Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pIUnP-0003GA-Az for pgsql-hackers@postgresql.org; Thu, 19 Jan 2023 13:17:44 +0000 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-15eec491b40so2410868fac.12 for ; Thu, 19 Jan 2023 05:17:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AWW+O5rD/ept4RaKenQrbDERmVS2fF0jk0W/Em0zIT8=; b=Wy3NX7F+etweP73NFo1XLym4o5l1Ce3xvv63TKA7TTApybVi5YI8gyc48T2de1WH14 Sv4sqNzu/MP+gfuksAWCdhkcPoLaHCKYFDuSt4dSa0yhdYSRsWKwDlpNYYMwtbzXq3Op jp5GI2HxBWDljTgQnzc7/7JSm8iakQJBFLx8q3bAcmfQa6YPCn0PuarbHqI115TU65Uo McpdTgEvDUuJXXkL3DZ2uR9vtJIVNDw/SnQIuKPIME1fuHkNRj1DB/xOUaDLAZIP8ljI xnifZxPEe2F4nrGdAjAefEAAG0VXPOli3YYM6AtMKqXtxgLuhosAX//SN/sFZL+pvD0O Um1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AWW+O5rD/ept4RaKenQrbDERmVS2fF0jk0W/Em0zIT8=; b=5v1Cj1aDPoIc0A6hK7sDxnNPeVPqAA7yJt2AY0uy1W7V23oqI/iNdpyCgBFXJDHRl4 auep4ytijbleEOiiAPD86ivmPWPFPSXWA0At66LbUCI0S5yoNjicw3s8Q2f5WvZ9Pl4T BaT42gVPHcBaTrgh5oIwO4pnwfOO6kyshZae1KcXdKvCRoE4B91xXzJjzJN33r6T1h5f E4HwZomei4gtovIe4a+dEjsjOPJDNerYChAV8QFadgIeOOFy++Eeazi0wJ0pzsX0g9jO ZZEWv9wxIynpYt4sqMtPhPIs8CIWEwgqYRkZdn7xH4BLGW2cDqOOGOYC/GsLa6tZTvhk K8EA== X-Gm-Message-State: AFqh2kqLzwOd6rE39fojRSHCVYQck3V0zOMtEXar6rw6YVlDq+gsNJD1 Ts6ng3NI+FSGuzOQS/LYGYBQu/rr6PvQ9PfKYY0= X-Google-Smtp-Source: AMrXdXvoSPxegfTFoJBEKr/KgtCZX3o5bQPbFpDweAhkJ3NXVAsYpzRDvXTFt3JCsD+c00IGXLUoxF3iIQ1AUweKvF8= X-Received: by 2002:a05:6870:2c95:b0:144:c77a:1467 with SMTP id oh21-20020a0568702c9500b00144c77a1467mr924316oab.272.1674134254683; Thu, 19 Jan 2023 05:17:34 -0800 (PST) MIME-Version: 1.0 References: <20230112.120338.534662300633460797.horikyota.ntt@gmail.com> In-Reply-To: From: Amit Kapila Date: Thu, 19 Jan 2023 18:47:22 +0530 Message-ID: Subject: Re: Time delayed LR (WAS Re: logical replication restrictions) To: "Takamichi Osumi (Fujitsu)" Cc: Peter Smith , vignesh C , Kyotaro Horiguchi , "Hayato Kuroda (Fujitsu)" , "shveta.malik@gmail.com" , "dilipbalaut@gmail.com" , "euler@eulerto.com" , "m.melihmutlu@gmail.com" , "andres@anarazel.de" , "marcos@f10.com.br" , "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jan 19, 2023 at 12:06 PM Takamichi Osumi (Fujitsu) wrote: > > Kindly have a look at the updated patch v17. > Can we try to optimize the test time for this test? On my machine, it is the second highest time-consuming test in src/test/subscription. It seems you are waiting twice for apply_delay and both are for streaming cases by varying the number of changes. I think it should be just once and that too for the non-streaming case. I think it would be good to test streaming code path interaction but not sure if it is important enough to have two test cases for apply_delay. One minor comment that I observed while going through the patch. + /* + * The combination of parallel streaming mode and min_apply_delay is not + * allowed. + */ + if (IsSet(supported_opts, SUBOPT_MIN_APPLY_DELAY) && + opts->min_apply_delay > 0) I think it would be good if you can specify the reason for not allowing this combination in the comments. -- With Regards, Amit Kapila.