Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnREo-00DIBW-GU for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Mar 2024 22:50:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rnREm-00Ge8M-Ob for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Mar 2024 22:50:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnREm-00Ge8E-9k for pgsql-hackers@lists.postgresql.org; Thu, 21 Mar 2024 22:50:16 +0000 Received: from wfout6-smtp.messagingengine.com ([64.147.123.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnREj-005kPI-6I for pgsql-hackers@lists.postgresql.org; Thu, 21 Mar 2024 22:50:15 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.west.internal (Postfix) with ESMTP id 7E2FA1C000C0; Thu, 21 Mar 2024 18:50:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 21 Mar 2024 18:50:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1711061412; x=1711147812; bh=Wnl7x682Jyitsc24jKGuA+lYvokz0nnW hvy7iczwc+0=; b=WszCAWAixNiZrYBBsCjrMbJ9/DyZoD7aADSx2yCHCN1JPe45 6cAsb5t/pazRulj022j08gPgwDm4xZZgwfwX1udE5Klfbg7LltaAvbymBXKt0Tyi oPZbqt7+VbsGWrIImRhy5+W2DmhQikhpIRfrlHQI09mk/nd4VD0JF74fUGtMqrQ2 OLBhM3czvUIbQ90kVUXEOKbxqi5vp2r5de1M0DhOGe6OgpOID69FnkxQawNGecGT aZEDGwg9c3zh8sGR405346FKQXSKYDb8G6H6MPgmbM9B9jiNnvhqRPy+LIglLWZm fldYNQB6zVHGL9YAaJk3tWZ9HnCNz7r9YScrBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711061412; x= 1711147812; bh=Wnl7x682Jyitsc24jKGuA+lYvokz0nnWhvy7iczwc+0=; b=v ENisCZjBdXjV0lSy87CSjL7h2+wYse9LaH++jsO5PbXKsGyUMJYOv5jkiZ0q2MBv OL38sHc47bUzlSwR6bAYQH57ilnx+P+BZk4Ds+Y72xS/5bGsF2CJGKJd3WBKEwSi E023PcQs1/Kx4eIIbscv1rJH3OtIkQ0PVhVcmwwVRCnwVXsxZhnq+PlluvnQxz6p F2qtw6FJw8N5R9I/hbTr+SilqoF9YJNqmuU3QsLllWUmPoFd9IiUR3fLNiHpCmv0 7bJo+LRPy/holeWTk2kXHR7goGZqfFx0UYiUIbzscgceZDksj01p/pGy5EP43TBN Ewhvy4YIDCCsxWTglIHzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrleekgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqe enucggtffrrghtthgvrhhnpeejhfevhedttefgfffhhfeffefggffhffelgfeiueeukeeh vdehvdefheffvdefueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Mar 2024 18:50:10 -0400 (EDT) Message-ID: Date: Thu, 21 Mar 2024 23:50:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed Content-Language: en-US To: Kartyshov Ivan , Alexander Korotkov Cc: pgsql-hackers@lists.postgresql.org References: <4953563546cb8c8851f84c7debf723ef@postgrespro.ru> <31547e4e8c263392a768ea89a3f57833@postgrespro.ru> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 19.03.24 18:38, Kartyshov Ivan wrote: >              CALL pg_wait_lsn('0/3002AE8', 10000); >              BEGIN; >              SELECT * FROM tbl; // read fresh insertions >              COMMIT; I'm not endorsing this or any other approach, but I think the timeout parameter should be of type interval, not an integer with a unit that is hidden in the documentation.