Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 104EA9FB27F for ; Sat, 28 Oct 2006 14:40:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 21914-05 for ; Sat, 28 Oct 2006 14:40:01 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by postgresql.org (Postfix) with ESMTP id C621C9FB227 for ; Sat, 28 Oct 2006 14:40:00 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id g2so1486847nfe for ; Sat, 28 Oct 2006 10:39:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aAqmU/YntnEA8h+yJbZqWiMvyZvrIYpMk+Fo0vsN0BaSfg43A+5d1NSeLtF88O2MTr24xMdKAf4hYbILj7vhLT0db9a5aQTst9xuO3mNg3cphI3HyBzEY/bTyGxhJkTsEd6iZTDdrc+bM3Xt0sqDSojeTnTaxXVHMKutzJ2uKtI= Received: by 10.78.131.8 with SMTP id e8mr1694137hud; Sat, 28 Oct 2006 10:39:58 -0700 (PDT) Received: by 10.78.45.3 with HTTP; Sat, 28 Oct 2006 10:39:58 -0700 (PDT) Message-ID: Date: Sat, 28 Oct 2006 23:09:58 +0530 From: "Merlin Moncure" To: "Simon Riggs" Subject: Re: commit so slow program looks frozen Cc: "Carlo Stonebanks" , pgsql-performance@postgresql.org In-Reply-To: <1162030022.11568.168.camel@silverbirch.site> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6E0907A94904D94B99D7F387E08C4F570192F2D0@FALCON.INSIGHT> <1162030022.11568.168.camel@silverbirch.site> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.254 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/598 X-Sequence-Number: 21727 On 10/28/06, Simon Riggs wrote: > On Thu, 2006-10-26 at 11:06 -0400, Merlin Moncure wrote: > > On 10/26/06, Carlo Stonebanks wrote: > > > This is pretty interesting - where can I read more on this? Windows isn't > > > actually hanging, one single command line window is - from its behaviour, it > > > looks like the TCL postgresql package is waiting for pg_exec to come back > > > from the commit (I believe the commit has actually gone through). > > > > > > It could even be that there's something wrong with the TCL package, but from > > > my understanding it is one of the most complete interfaces out there - which > > > is weird, because TCL seems to be the most unpopular language in the > > > community. > > > > when it happens, make sure to query pg_locks and see what is going on > > there lock issues are not supposed to manifest on a commit, which > > releases locks, but you never know. There have been reports of > > insonsistent lock ups on windows (espeically multi-processor) which > > you might be experiencing. Make sure you have the very latest version > > of pg 8.1.x. Also consider checking out 8.2 and see if you can > > reproduce the behavior there...this will require compiling postgresql. > > Merlin, > > Rumour has it you managed to get a BT from Windows. That sounds like it > would be very useful here. > > Carlo, > > Many things can happen at commit time. Temp tables dropped, TRUNCATEd > old relations unlinked, init files removed, deferred foreign key checks > (and subsequent cascading), dropped tables flushed. The assumption that > COMMIT is a short request may not be correct according to the wide range > of tasks that could occur according to standard SQL:2003 behaviour. > > Some of those effects take longer on larger systems. Any and all of > those things have potential secondary effects, all of which can also > conflict with other user tasks and especially with a CHECKPOINT. Then > there's various forms of contention caused by misconfiguration. > > I do think we need some better instrumentation for this kind of thing. > > -- > Simon Riggs > EnterpriseDB http://www.enterprisedb.com start here: http://beta.linuxports.com/pgsql-hackers-win32/2005-08/msg00051.php merlin