pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael van Rooyen <michael@loot.co.za>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow queries on 9.3.1 despite use of index
Date: Mon, 28 Apr 2014 19:06:06 -0400
Message-ID: <30075.1398726366@sss.pgh.pa.us> (raw)
In-Reply-To: <535EC680.6010102@loot.co.za>
References: <535E8BFF.1010503@loot.co.za>
	<23166.1398707420@sss.pgh.pa.us>
	<535EC680.6010102@loot.co.za>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Michael van Rooyen <michael@loot.co.za> writes:
> On 2014/04/28 07:50 PM, Tom Lane wrote:
>> Hm ... it seems pretty suspicious that all of these examples take just
>> about exactly 1 second longer than you might expect.  I'm wondering
>> if there is something sitting on an exclusive table lock somewhere,
>> and releasing it after 1 second.

> I do have log_min_duration_statement = 1000, which may cause this.

Ah, I overlooked that detail.  Never mind that theory then.  Although
it might still be worth turning on log_lock_waits for awhile, just to
eliminate the possibility of lock-induced delays.

			regards, tom lane


-- 
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 (6+ messages)  latest in thread

Message-ID: <30075.1398726366@sss.pgh.pa.us>
Permalink:  ../30075.1398726366@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30075.1398726366@sss.pgh.pa.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael@loot.co.za
  Subject: Re: Slow queries on 9.3.1 despite use of index
  In-Reply-To: <30075.1398726366@sss.pgh.pa.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