pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vipul Patel <vipul.patel@elitecore.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6450: PQexec stuck.
Date: Fri, 10 Feb 2012 13:54:35 +0530
Message-ID: <4F34D443.6010104@elitecore.com> (raw)
In-Reply-To: <4F33A8130200002500045109@gw.wicourts.gov>
References: <E1RvNUx-0003wQ-HI@wrigleys.postgresql.org>
	<4F33A8130200002500045109@gw.wicourts.gov>

Hi,
             I don't understand why " CREATE TABLE " Need to lock. 
CREATE TABLE Statement gose Hang state, whether it is execute by any 
client using (PQexec) or Standard "psql".

Regards,
Vipul Patel.


On Thursday 09 February 2012 10:33 PM, Kevin Grittner wrote:
> <vipul.patel@elitecore.com>  wrote:
>
>> some time call of create table is stuck which is called by PQexec.
>
> What locks and blocking do you see when this happens?
>
> http://wiki.postgresql.org/wiki/Lock_Monitoring';
>
> Have you considered getting an explicit lock with NOWAIT at the
> start of your transaction, to test whether you can currently acquire
> the rights to proceed?
>
>> in current stat the PQexec will stuck till anyone not vacume and
>> reindexing the DB.
>
> I've never seen such a situation.  Are you sure that's really
> needed, as opposed to something that just takes long enough that the
> issue has cleared by the time you're finished with these steps?
>
> -Kevin
>
>




view thread (4+ messages)  latest in thread

Message-ID: <4F34D443.6010104@elitecore.com>
Permalink:  ../4F34D443.6010104@elitecore.com/
Also on:    postgresql.org/message-id/4F34D443.6010104@elitecore.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: vipul.patel@elitecore.com, Kevin.Grittner@wicourts.gov
  Subject: Re: BUG #6450: PQexec stuck.
  In-Reply-To: <4F34D443.6010104@elitecore.com>
  References: <E1RvNUx-0003wQ-HI@wrigleys.postgresql.org> <4F33A8130200002500045109@gw.wicourts.gov> <4F34D443.6010104@elitecore.com>

* 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