Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYlAV-0000WQ-5V for pgsql-performance@arkaria.postgresql.org; Tue, 22 Oct 2013 23:15:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VYlAU-0006dm-G1 for pgsql-performance@arkaria.postgresql.org; Tue, 22 Oct 2013 23:15:18 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYlAT-0006dV-KS for pgsql-performance@postgresql.org; Tue, 22 Oct 2013 23:15:17 +0000 Received: from mail.gransy.com ([2001:1528:137::f1]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYlAR-0002sx-8L for pgsql-performance@postgresql.org; Tue, 22 Oct 2013 23:15:17 +0000 Received: from antispam.gransy.com (antispam.gransy.com [77.78.104.124]) by mail.gransy.com (Postfix) with ESMTP id 9A3BA508C44 for ; Wed, 23 Oct 2013 01:15:14 +0200 (CEST) X-Virus-Scanned: G-Hosting.cz + Station.cz + Klenot.cz + Subreg.cz amavisd-new at antispam.gransy.com Received: from mail.gransy.com ([82.208.44.189]) by antispam.gransy.com (antispam.gransy.com [77.78.104.124]) (amavisd-new, port 10024) with ESMTP id v19C7b7vQHc5 for ; Wed, 23 Oct 2013 01:15:15 +0200 (CEST) Received: by mail.gransy.com (Postfix, from userid 5000) id 73504508C4A; Wed, 23 Oct 2013 01:15:14 +0200 (CEST) Received: from [192.168.1.227] (ip-78-45-139-138.net.upcbroadband.cz [78.45.139.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.gransy.com (Postfix) with ESMTPSA id 455B3508C44 for ; Wed, 23 Oct 2013 01:15:14 +0200 (CEST) Message-ID: <52670702.3030201@fuzzy.cz> Date: Wed, 23 Oct 2013 01:15:14 +0200 From: Tomas Vondra User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Hot Standby performance issue References: <1382291901534-5775181.post@n5.nabble.com> <526460B7.3020008@fuzzy.cz> <1382367933794-5775257.post@n5.nabble.com> <52658780.1040002@fuzzy.cz> <1382390332002-5775332.post@n5.nabble.com> <5265A28E.4060601@fuzzy.cz> <1382396377294-5775349.post@n5.nabble.com> <5265B562.3040407@fuzzy.cz> <1382400045239-5775361.post@n5.nabble.com> <5266BD42.2030303@fuzzy.cz> <1382478627757-5775529.post@n5.nabble.com> In-Reply-To: <1382478627757-5775529.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 22.10.2013 23:50, sparikh wrote: > Sorry, it was typo from my side. I meant strace only. OK. > > I will try to request both perf and strace to be installed. But I am > not quite sure as the VMs are managed by third party. Will keep you > posted... What do you mean by VM? Is this a virtualized environment or bare hardware? > > The main thing puzzling to me is Explain Plan with Analyze takes > couple of secs to execute the operation but in reality it runs for > more than 20 mins. So, now I'm getting confused. Can you please provide timings for each case. I.e. how long it takes to execute 1) plain query 2) explain query 3) explain analyze query Execute each of those a couple of times, and let us know about significant variations. It should always be EXPLAIN ANALYZE >= query >= EXPLAIN If you're reporting you see "EXPLAIN ANALYZE < query" then I find that really strange. Tomas -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance