Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBscE-0004u8-Ia for pgsql-admin@arkaria.postgresql.org; Mon, 15 Oct 2018 02:28:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBscC-0002al-TA for pgsql-admin@arkaria.postgresql.org; Mon, 15 Oct 2018 02:28:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBscC-0002Zz-IM for pgsql-admin@lists.postgresql.org; Mon, 15 Oct 2018 02:28:16 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([202.78.240.226]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBsc8-0001x8-8D for pgsql-admin@lists.postgresql.org; Mon, 15 Oct 2018 02:28:14 +0000 Received: from [IPv6:2406:e001:b7c:1:74e4:2a2f:5cd8:9650] (unknown [IPv6:2406:e001:b7c:1:74e4:2a2f:5cd8:9650]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id 296FC80C3E for ; Mon, 15 Oct 2018 15:28:09 +1300 (NZDT) Subject: Re: Hick ups in Postgresql Logical Replication To: pgsql-admin@lists.postgresql.org References: <1539447741900-0.post@n3.nabble.com> From: Mark Kirkwood Message-ID: <20427d4e-98a5-0cda-bddc-070989015cca@catalyst.net.nz> Date: Mon, 15 Oct 2018 15:28:08 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1539447741900-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: ORIGINATING; auth=pass smtp.auth=mark.kirkwood@catalyst.net.nz smtp.mailfrom=mark.kirkwood@catalyst.net.nz List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, A lag would suggest that the subscriber is still catching up. However, there might be something else going on. We'd probably need to see how you actually did your set up, and also how you are deducing that there is a lag (e.g pg_stat_subscription)? Don't forget to examine your logs for errors too. regards Mark On 14/10/18 05:22, pavan95 wrote: > Hi, > > I have configured Logical Replication. One Publisher and One Subscriber. > When I query the current LSN on publisher and subscriber, I see that there > is a lag between them. > > For example if a published table consists of 3278 records, then on the > subscriber I see only 3275 records. So how to sync that lagged 3 records? > > Is there a way to know the number of transaction to be replayed or from > which time the transactions are to be replayed from publisher to subscriber, > with the help of LSN > > > > -- > Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html >