Re: Slow queries on 9.3.1 despite use of index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael van Rooyen <michael(at)loot(dot)co(dot)za>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow queries on 9.3.1 despite use of index
Date: 2014-04-28 23:06:06
Message-ID: 30075.1398726366@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Michael van Rooyen <michael(at)loot(dot)co(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Albe Laurenz 2014-04-29 08:13:54 Re: Revisiting disk layout on ZFS systems
Previous Message Michael van Rooyen 2014-04-28 21:22:08 Re: Slow queries on 9.3.1 despite use of index