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 1gBMgT-000430-FW for pgsql-admin@arkaria.postgresql.org; Sat, 13 Oct 2018 16:22:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBMgO-0005nP-Um for pgsql-admin@arkaria.postgresql.org; Sat, 13 Oct 2018 16:22:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBMgO-0005nI-NR for pgsql-admin@lists.postgresql.org; Sat, 13 Oct 2018 16:22:28 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBMgL-00083Y-A1 for pgsql-admin@postgresql.org; Sat, 13 Oct 2018 16:22:28 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id DC6C1FB13CB5 for ; Sat, 13 Oct 2018 09:22:21 -0700 (MST) Date: Sat, 13 Oct 2018 09:22:21 -0700 (MST) From: pavan95 To: pgsql-admin@postgresql.org Message-ID: <1539447741900-0.post@n3.nabble.com> Subject: Re: Hick ups in Postgresql Logical Replication MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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