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.96) (envelope-from ) id 1w4nJY-002Yvc-16 for pgsql-novice@arkaria.postgresql.org; Mon, 23 Mar 2026 22:00:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w4nJW-002gpv-2P for pgsql-novice@arkaria.postgresql.org; Mon, 23 Mar 2026 21:59:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w4nJW-002gpn-1X for pgsql-novice@lists.postgresql.org; Mon, 23 Mar 2026 21:59:58 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w4nJU-00000000ln5-1XDl for pgsql-novice@lists.postgresql.org; Mon, 23 Mar 2026 21:59:58 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-486ff201041so27179355e9.1 for ; Mon, 23 Mar 2026 14:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1774303195; x=1774907995; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=o7h6lo1HJX1gON2u3wMim4PnULPPbC+MK8u7TxlH/e0=; b=KOroUYSKucDJJ9Aao0qRjo5qfe5yiqdGDqHeCIR5h9iN7gZ0F1obE2+sjBX5JAz44i Eml3Hr5mpjfdeTmwCit2OlzixL+zQxLUTYgR5At+br65AvAfL9/OTaoJkxuCOmDo1G/q 7XO8VwqY/2uzAJte0Z81WmK0vkMkJu/+1uuTbhHtguIFZTYkctrOxI4bPyn+BdqWutzZ 4y+RR464TpiYazAy+GT+3QhO4mPBkascUxNABDSUhqRuVXl5ogxjcGXiJC6L1KHjiG2K qNwWR9pkRIXuUWA9n/hHzPHxPGBCW0kuj1ItBbRhIXexDl1JGMMp4yTrMZ2kHaJSPA8V P7yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774303195; x=1774907995; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o7h6lo1HJX1gON2u3wMim4PnULPPbC+MK8u7TxlH/e0=; b=Jauz47DuSoP3rXAuVevOoBq05I0nB5CuxBPcL7A6Bn3Xj8cL25uZCmdCoJL+ekYejm zLb2EhCww9WSHSB/GMiq5RDH4SFQPpI+AxTnGyozzVq3l4qdxthrn7IVL6ytLExIyB8u 3QLfSPJjLqEpio55uaDwGPpPCxmM6vW/suJ/dNdiR3cmAKv1cIBqPXFuAEI4MYQzOJs9 DkdGCtP5qZO6RjlZ/BuQiZ+rC3Ivbh8D0eFFhftO5BQ/XGej8pRJkazgeMaG8yD9x+dv gzh0h7c+ElPkVPlJcHsgvJ7wnn1pPlDzknONXbHRdytoEA/MMobkEFFWmcvSo8J8raU0 fgLA== X-Forwarded-Encrypted: i=1; AJvYcCUvgNjNIbNqyBIiLqOyTNrzFUDWoaxaxz8ltOSJzBo+/2qzAuya/WaZgByzY5v+ctW0TReiRSMeX3Lxo8U=@lists.postgresql.org X-Gm-Message-State: AOJu0Yx4+mpzHf1lU/hynY+K/m9/9IJZ0I/ag8t0EkPIHQyRWsfzy3Zs 3QPdqAhWeGXGt9jFFRMa6YmGOpMoArTbhJXAJiViULB6Lqpb+Gauh7++une6NFN5qZk= X-Gm-Gg: ATEYQzwjZ4k/kUUN1aAbnPxJhHb4vO5z/Z5Pi+NZ+mm5LttE528FJ3eGpmqkrS1sUz/ U1elqUNtrO3+xhyVIfX2U9MDHgQ43olA/vZ2EEto5teS3wj5DtJpiZLyWCojmwhDhDI3HL4r6nY cI64/+g9w3rGQCjvykdphb5Z1BTJsIpvyI8VqhgQ9R+x/+cwZDS77gtqfrrgwWFHTiIkx+Ukpe0 W6yCycO9mG01s+51k0twQch4JnizJlID5dqMc/M3jaTWB7icTjk5YDwnsLQgrpMh7ZVBu+NBmg3 smBqVwhRCy1YLh5HDMonZvfnUa3ic838lKV4E5YtYw/ZldB8SmV2fAvK2Qtk51ppRrhu1eIP5VA fFJAlfictg8wdEUA1mpjdwzJxYm0nXIHHYWbNaHKih8TbqyqhltUd5zIz3+ncAJXxbZ2nQu22f5 durZGkErxbmvsAzL4A6ajKcop3i6OS6T4fnqiOYLuoG303T39Dga7sPUw= X-Received: by 2002:a05:600c:a085:b0:485:3ec6:e634 with SMTP id 5b1f17b1804b1-486fedcc6e7mr195530295e9.15.1774303195432; Mon, 23 Mar 2026 14:59:55 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:270:4fd5:603f:45c2:9807:c104]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-487111163b2sm1788495e9.34.2026.03.23.14.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 14:59:55 -0700 (PDT) Message-ID: <89d63402747edb3bf80ff668fdd63cc77334f446.camel@cybertec.at> Subject: Re: AW: AW: AW: AW: Replication Testing- How to introduce a Lag From: Laurenz Albe To: "Subramanian,Ramachandran" , "pgsql-novice@lists.postgresql.org" Date: Mon, 23 Mar 2026 22:59:54 +0100 In-Reply-To: <477369bf897b44feb2d2368f6fca93fc@alte-leipziger.de> References: <8b38fa5141905f9ad6983b8d5ae944e812e3d28a.camel@cybertec.at> <0e00fcc0062b59b88f98dba4900ce49d5a9a3fea.camel@cybertec.at> <477369bf897b44feb2d2368f6fca93fc@alte-leipziger.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2026-03-23 at 16:36 +0000, Subramanian,Ramachandran wrote: > I noticed that=C2=A0 RBAs are not incremented one for one . i.e=C2=A0 1 r= ow inserted does not mean RBA=3DRBA+1 . 1 row updated=C2=A0 does not mean R= BA=3DRBA+1=20 >=20 > I have ALTER SYSTEM SET recovery_min_apply_delay=3D300000 ; ( on the stan= d by side )=20 >=20 > On the Source side=20 > A simple create table results in a RBA difference of 108328=20 >=20 > A simple insert of 1 row results in a RBA difference of 296=C2=A0=C2=A0 s= ometimes 96=20 >=20 > Is there a way to estimate roughly the amount of data that remains to be = transfered ?=C2=A0 I don't know what an RBA is... If you are using recovery_min_apply_delay, don't measure the replication la= g with regard to the replay_lsn, because replay is deliberately delayed. Instead, measure the difference to flush_lsn, the WAL position successfully transferred to the standby and persisted there. Yours, Laurenz Albe