Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VSLzL-0000os-45 for pgsql-admin@arkaria.postgresql.org; Sat, 05 Oct 2013 07:09:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VSLzK-0008JM-Ci for pgsql-admin@arkaria.postgresql.org; Sat, 05 Oct 2013 07:09:18 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VSLzJ-0008JG-Et for pgsql-admin@postgresql.org; Sat, 05 Oct 2013 07:09:17 +0000 Received: from mailout.ownit.se ([94.137.96.140] helo=spamgw2.ownit.se) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VSLzF-0003uk-6K for pgsql-admin@postgresql.org; Sat, 05 Oct 2013 07:09:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ownit.se; s=2010.dkim; h=received:received:content-type:mime-version:subject:from:in-reply-to:date:cc: content-transfer-encoding:message-id:references:to:x-mailer; bh=TwM9qc8Q9DRLJbHZ/70DbDsjJPLejcLGVL2SZRRd76Q=; b=Kcc+05UTCIiHBYPQk6S7a2rjjNHt+79czyPCZgagxYdSXA0dtiLhiV4Ry1mPQCkHlNXUEmpGFN3G7 d+YWj6EhChxqKL3LZzRVBgNk0ssbtA1mhq+2LqumDIbED5urysFSZxzTlDMnsxk3B1n5cGQyrVv/1Q zf51JVZTcPX4F0p8= Received: from mail.ownit.nu (unknown [109.104.0.111]) by mailout.ownit.se (Halon Mail Gateway) with ESMTPS; Sat, 5 Oct 2013 09:09:07 +0200 (CEST) Received: from [192.168.1.5] (89-253-107-135.customers.ownit.se [89.253.107.135]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.ownit.nu (Postfix) with ESMTPS id 59E3BFE7C8; Sat, 5 Oct 2013 09:09:07 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: How to track down locks held by recovery process on a slave? From: reiner peterke In-Reply-To: Date: Sat, 5 Oct 2013 09:08:37 +0200 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Amador Alvarez X-Mailer: Apple Mail (2.1508) X-Pg-Spam-Score: 1.6 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org First thought is make sure you are looking in the right database. pg_locks shows data over the entire server, not just the connected database. pg_class exists for each database so if you are connected to 'my_database'= but the object is in 'your_database', it won't show up in pg_class on 'my_= database'. check the database value in pg_locks to verify where you should be looking = for the object. reiner On 5 okt 2013, at 00:48, Amador Alvarez wrote: > Hi there, >=20 > I am using a postgres 9.2 slave for some reports and I noticed that somet= imes they are held up because certain activity on the master like vacuums c= an affect long queries on a slave . >=20 > Looking at pg_locks view , I can see that the recovering process on the s= lave is holding some AccessExclusiveLock locks on relations which numbers t= hat do not mach any pg_class.oid.=20 >=20 > Any idea How could I find out which relations are locked by the recoverin= g process? >=20 >=20 > Thanks in advance, > A.A. --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin