Re: Lock during insert statement - Mailing list pgsql-general

From AI Rumman
Subject Re: Lock during insert statement
Date
Msg-id CAGoODpdkMeL3LvXNWk2ojagr=q16wT4-Abpi48-a2OuoAvXLKQ@mail.gmail.com
Whole thread Raw
In response to Re: Lock during insert statement  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Lock during insert statement
List pgsql-general
Got it. 
Thanks. 
Any special parameter to tune it? Like wal_buffers or shared_buffers?


On Wed, May 21, 2014 at 3:28 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
On Wed, May 21, 2014 at 3:14 PM, AI Rumman <rummandba@gmail.com> wrote:
Could any one please tell me why my system is waiting to get lock for an INSERT statement?

2014-05-21 07:52:49.965 PDT [9-1]LOG:  process 31407 acquired ExclusiveLock on extension of relation 429298276 of database 21497 after 3219.963 ms

"on extension of relation" means that it needs to add 8KB to the end of the table.  That it takes so long to obtain that locks suggests you have a some serious IO congestion.

Cheers,

Jeff

pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Lock during insert statement
Next
From: David G Johnston
Date:
Subject: Re: Question regarding DEALLOCATE pdo_stmt_00000001