pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sparikh <sparikh@ecotality.com>
To: pgsql-performance@postgresql.org
Subject: Re: Hot Standby performance issue
Date: Mon, 21 Oct 2013 08:05:33 -0700 (PDT)
Message-ID: <1382367933794-5775257.post@n5.nabble.com> (raw)
In-Reply-To: <526460B7.3020008@fuzzy.cz>
References: <1381869626548-5774673.post@n5.nabble.com>
	<1382291901534-5775181.post@n5.nabble.com>
	<526460B7.3020008@fuzzy.cz>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Stupid question - when you say that a query is fast on primary but slow 
on standby, are you referring to exactly the same query, including 
parameter values? 

Yes . It is exactly and exactly the same query with the same parameters. 
Yes, it sounds stupid  but that is what happening. Though plan says it is
18ms it runs for more than 15-20 mins and finally returns with conflict
error : " ERROR: canceling statement due to conflict with recovery "

Even the to run execute plan itself takes very long on standby. Just to get
the execute plan on standby is turning out big deal. 

Regarding IO spike, yes I can understand that if data is not available in
the memory then it has to get it from disk. But the thing is it remains
there as much time until query returns with Query conflict error.

Thanks again.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/Hot-Standby-performance-issue-tp5774673p5775257.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (31+ messages)  latest in thread

Message-ID: <1382367933794-5775257.post@n5.nabble.com>
Permalink:  ../1382367933794-5775257.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1382367933794-5775257.post@n5.nabble.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sparikh@ecotality.com
  Subject: Re: Hot Standby performance issue
  In-Reply-To: <1382367933794-5775257.post@n5.nabble.com>

* 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