Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9EPn-0008Vt-Qo for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2017 17:31:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d9EPn-0004mD-Dg for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2017 17:31:43 +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.84_2) (envelope-from ) id 1d9EP6-0003Ky-ST for pgsql-bugs@postgresql.org; Fri, 12 May 2017 17:31:00 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d9EP3-0004Nx-AB for pgsql-bugs@postgresql.org; Fri, 12 May 2017 17:31:00 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1d9EP1-0008IX-2w; Fri, 12 May 2017 13:30:55 -0400 Date: Fri, 12 May 2017 13:30:55 -0400 From: Bruce Momjian To: Haribabu Kommi Cc: Tom Lane , Vitaliy Gomenyuk , "pgsql-bugs@postgresql.org" , Aleksandr Saraseka Subject: Re: BUG #14635: Query is executed slower on hot standby slave database then on master database Message-ID: <20170512173055.GD6721@momjian.us> References: <20170428133818.24368.33533@wrigleys.postgresql.org> <25801.1493820359@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Thu, May 4, 2017 at 10:26:17AM +1000, Haribabu Kommi wrote: > The contents of the indexes should be the same, so why is the slave > returning so many more rows?  It has to be because the index entries are > not marked as killed (known-dead-to-everybody), or not being treated as > killed, in the slave.  I vaguely recall that there's a difference in the > rules for index entry visibility on slaves, but it's not clear to me why > that should be. > > > The index cleanup by the full vacuum and vacuum one page are WAL logged, > so when they gets replayed on the slave, both the indexes must be same. > > May be the WAL didn't replayed on the slave because of conflict transaction? > Or Any other scenarios it may be different? We don't WAL-log hint bits. Could that affect queries running on the standbys? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs