X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 407B8D1B509 for ; Tue, 11 Nov 2003 15:10:11 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 57691-09 for ; Tue, 11 Nov 2003 11:09:42 -0400 (AST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 70A39D1B4F6 for ; Tue, 11 Nov 2003 11:09:38 -0400 (AST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 28DD5353DE; Tue, 11 Nov 2003 07:09:37 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 274CB3526F; Tue, 11 Nov 2003 07:09:37 -0800 (PST) Date: Tue, 11 Nov 2003 07:09:37 -0800 (PST) From: Stephan Szabo To: pginfo Cc: Antonis Antoniou , "'pgsql-admin@postgresql.org'" Subject: Re: vacuum full problem In-Reply-To: <3FB09C68.2003C6F9@t1.unisoftbg.com> Message-ID: <20031111070303.K60760@megazone.bigpanda.com> References: <3FAB2AFA.E32E7FD6@t1.unisoftbg.com> <3FAB78F3.8060406@albourne.com> <3FABBEAB.D15DBA8@t1.unisoftbg.com> <3FB08DF3.5080703@albourne.com> <20031111000039.L47755@megazone.bigpanda.com> <3FB09C68.2003C6F9@t1.unisoftbg.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/181 X-Sequence-Number: 11168 On Tue, 11 Nov 2003, pginfo wrote: > Hi, > I can not be sure if it is not the case. > But we are usin this system on a number of servers and it happen only by > one. > Can I with a pg_locks help detect the query that is running? It won't directly tell you what statement is running (although my guess is also that it's probably something like an idle in transaction state backend), but it can tell you if that's the problem probably. You'd see something like: ... 21488 | 17057 | | 8613 | AccessShareLock | t ... 21488 | 17057 | | 8626 | AccessExclusiveLock | f Which is basically saying that the command in pid 8626 is waiting on the lock that pid 8613 has.