pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Vitaliy Gomenyuk <vgomenyuk@callfire.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Cc: Aleksandr Saraseka <asaraseka@callfire.com>
Subject: Re: BUG #14635: Query is executed slower on hot standby slave database then on master database
Date: Fri, 12 May 2017 13:30:55 -0400
Message-ID: <20170512173055.GD6721@momjian.us> (raw)
In-Reply-To: <CAJrrPGfi6mxwZ5hBE-+9qGf8NC=n6ta1MwXJxvv2o=nqzD3TMA@mail.gmail.com>
References: <20170428133818.24368.33533@wrigleys.postgresql.org>
	<CAJrrPGcjNZO5UkexVfjF_CCBVrPtoY-iVvEYhP1n97z0ARWLoQ@mail.gmail.com>
	<CAB3vJC=jtteQppCcRqvPW1DhthO3sWQO4GKpr7FYjk2-Y_SL5A@mail.gmail.com>
	<25801.1493820359@sss.pgh.pa.us>
	<CAJrrPGfi6mxwZ5hBE-+9qGf8NC=n6ta1MwXJxvv2o=nqzD3TMA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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  <bruce@momjian.us>        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



view thread (19+ messages)  latest in thread

Message-ID: <20170512173055.GD6721@momjian.us>
Permalink:  ../20170512173055.GD6721@momjian.us/
Also on:    postgresql.org/message-id/20170512173055.GD6721@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, kommi.haribabu@gmail.com, tgl@sss.pgh.pa.us, vgomenyuk@callfire.com, asaraseka@callfire.com
  Subject: Re: BUG #14635: Query is executed slower on hot standby slave database then on master database
  In-Reply-To: <20170512173055.GD6721@momjian.us>
  References: <20170428133818.24368.33533@wrigleys.postgresql.org> <CAJrrPGcjNZO5UkexVfjF_CCBVrPtoY-iVvEYhP1n97z0ARWLoQ@mail.gmail.com> <CAB3vJC=jtteQppCcRqvPW1DhthO3sWQO4GKpr7FYjk2-Y_SL5A@mail.gmail.com> <25801.1493820359@sss.pgh.pa.us> <CAJrrPGfi6mxwZ5hBE-+9qGf8NC=n6ta1MwXJxvv2o=nqzD3TMA@mail.gmail.com> <20170512173055.GD6721@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox