Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id E166F2D0B0E for ; Fri, 10 Feb 2012 04:25:07 -0400 (AST) Received: from mailhost.elitecore.com ([203.88.135.194] helo=elitecore.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rvlmn-0000HD-0A for pgsql-bugs@postgresql.org; Fri, 10 Feb 2012 08:25:07 +0000 Received: (qmail 18928 invoked from network); 10 Feb 2012 08:24:35 -0000 Received: from unknown (HELO [10.103.6.172]) (vipul.patel@[10.103.6.172]) (envelope-sender ) by elitecore.com (qmail-ldap-1.03) with SMTP for ; 10 Feb 2012 08:24:35 -0000 Message-ID: <4F34D443.6010104@elitecore.com> Date: Fri, 10 Feb 2012 13:54:35 +0530 From: Vipul Patel User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6450: PQexec stuck. References: <4F33A8130200002500045109@gw.wicourts.gov> In-Reply-To: <4F33A8130200002500045109@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Cyberoam-smtpxy-version: 1.0.6.3 X-Cyberoam-AV-Policy: Default Rule X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/95 X-Sequence-Number: 32438 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: > 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 > >