Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U37nt-0001rW-7J for pgsql-performance@arkaria.postgresql.org; Wed, 06 Feb 2013 16:24:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U37ns-0008K8-1p for pgsql-performance@arkaria.postgresql.org; Wed, 06 Feb 2013 16:24:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U37ng-00089W-2x for pgsql-performance@postgresql.org; Wed, 06 Feb 2013 16:24:44 +0000 Received: from mail-ve0-f173.google.com ([209.85.128.173]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U37na-0006lx-2S for pgsql-performance@postgresql.org; Wed, 06 Feb 2013 16:24:43 +0000 Received: by mail-ve0-f173.google.com with SMTP id oz10so1377220veb.32 for ; Wed, 06 Feb 2013 08:24:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:message-id:in-reply-to:references:subject :x-mailer:mime-version:content-type; bh=XqIon+dtCfrWvtSTZWcDyTdvAYMvaftcVRx2bSBFlJQ=; b=GMkzjqrKoLEUPZSbsci6slNeLnizJFkNojUz1VBxXNukYus37JVPIzwvWpRN7W7RBo QUsQtL4zrEdgWZyuMWVAaDksT49MHA8A5xFzCNgpG8RZw4+W9FZ9aa1q/yoI/JCUVGwo k2Z2bPZGi0smbam+sdp0b+bFy/LLlkf+7lR9pAgRMd7X8/bWyEdZXQbm0rQJZG6cbfFz T6ZauS/0pg3OFTbFfTNn+DMJjIqJ/C/363lq9LmL06HjFKjuxCyw+3cIEn8+QDNDMgmP kXHYCC644efCcX6kpd8CU3PrUgEcDpraw4h6ucaHKM3CHoCjfXjUcPwCK56vvCWFcqF7 P1mQ== X-Received: by 10.220.221.210 with SMTP id id18mr13018626vcb.74.1360167876701; Wed, 06 Feb 2013 08:24:36 -0800 (PST) Received: from [192.168.150.104] (cpe-142-105-213-24.stny.res.rr.com. [142.105.213.24]) by mx.google.com with ESMTPS id d13sm33473050vdj.8.2013.02.06.08.24.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 06 Feb 2013 08:24:36 -0800 (PST) Date: Wed, 6 Feb 2013 11:24:34 -0500 From: Will Platnick To: "=?utf-8?Q?pgsql-performance=40postgresql.org?=" Message-ID: <8E8E8399C0114A19A3DB3AF966635A23@gmail.com> In-Reply-To: <1360167760.44825.YahooMailNeo@web162901.mail.bf1.yahoo.com> References: <2CB5B53971DB42238A7640E6EFAE8D19@gmail.com> <1360167760.44825.YahooMailNeo@web162901.mail.bf1.yahoo.com> Subject: Re: Slow Query Help X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="511283c2_189a769b_1c95" X-Pg-Spam-Score: -2.7 (--) 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 --511283c2_189a769b_1c95 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Clients are technically our pgbouncer which is on the same machine. The explain analyze was local through psql direct to postgresql. On Wednesday, February 6, 2013 at 11:22 AM, Kevin Grittner wrote: > Will Platnick wrote: > > Will Platnick wrote: > > > > > The only thing that stands out is: on your production server I see > > > "Total runtime: 7.515 ms", but the top node in EXPLAIN ANAYZE shows > > > actual time as 0.179 ms. Not sure where that additional time is being > > > spent though. It could be ExecutorStart/End, but have no idea why they > > > should take so long. > > > > > > > > > Any ideas on how to troubleshoot this delay? > > Is the client which is running the query on the same machine as the > server? If not, what's the ping time between them? > > -Kevin --511283c2_189a769b_1c95 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Clients are technically our pgbouncer which is on th= e same machine. The explain analyze was local through psql direct to post= gresql.

=20

On Wednesday, =46ebrua= ry 6, 2013 at 11:22 AM, Kevin Grittner wrote:

Will Platnick <wplatnick=40gmail.com> wrote:
=
Will Platnick <wplatnick=40gmail.com> wrote:

The only thing that stands out is: on your production s= erver I see
=22Total runtime: 7.515 ms=22, but the top node in = EXPLAIN ANAYZE shows
actual time as 0.179 ms. Not sure where th= at additional time is being
spent though. It could be ExecutorS= tart/End, but have no idea why they
should take so long.
<= /div>

Any ideas on how to troubleshoot this delay=3F

Is the client which is running the query on the same ma= chine as the
server=3F  If not, what's the ping time betwe= en them=3F

-Kevin
=20 =20 =20 =20
=20

--511283c2_189a769b_1c95--