Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5CD75632A43 for ; Fri, 5 Feb 2010 05:44:06 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50185-10 for ; Fri, 5 Feb 2010 09:43:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f222.google.com (mail-ew0-f222.google.com [209.85.219.222]) by mail.postgresql.org (Postfix) with ESMTP id B30526324A4 for ; Fri, 5 Feb 2010 05:43:55 -0400 (AST) Received: by ewy22 with SMTP id 22so495473ewy.34 for ; Fri, 05 Feb 2010 01:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=NiaSg3PLsGFIdm/FqVFOOGjNASKI3X66Mz67j3pSsaQ=; b=WxuadXpXu42IAEHgBcOHF+XR8uf7n+tY9W064AXE4oDgniPLOAyGWMsJOfRghT9YfM g9S/QRSeynwHFSb18TS7VCUBUsnLR31sTC88fLEmj6ZxVD4wcaYa+JTDd9b9DUGNfQVA iZRXjlDnYV8XTms9gSP2x/GZYvZkJ+mCfUmtM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=MV172rPNynZ9/4Rv7kPDOgnpJcDtR9MJyFWA+ZfAwyPDicGZUgUHYw3lSBgGKDPzv/ 4ZSY8Aa6M9B4Wamo815gnSW5Z9YWb9ylzk8nSx499EGKtFQCUKLjRlGTf0qMm+aZpEfv sX81qil2H1wRnpezgy/SlPJABqUV/PQYfsmXE= MIME-Version: 1.0 Received: by 10.213.50.67 with SMTP id y3mr2100217ebf.31.1265363033814; Fri, 05 Feb 2010 01:43:53 -0800 (PST) Date: Fri, 5 Feb 2010 11:43:53 +0200 Message-ID: <530068a1002050143n26ee05c6hda0de69f5ed97a9d@mail.gmail.com> Subject: vacuum deadlock From: Ibrahim Harrani To: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary=0014852d2193248042047ed74ac9 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201002/48 X-Sequence-Number: 33651 --0014852d2193248042047ed74ac9 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am using PostgreSQL 8.3.7. autovacuum is enabled in postgresql.conf I got a deadlock while vacuuming all databases with vacuumdb command. vacuumdb: vacuuming of database "mydb" failed: ERROR: deadlock detected DETAIL: Process 1294 waits for AccessExclusiveLock on relation 2662 of database ; blocked by process 1807. Process 1807 waits for AccessShareLock on relation 1259 of database 16389; blocked by process 1294. I think, because of this lock, deleting a large table (15 million records) was taking too much time How can I know the name of the relations 2662 and 1259? Do you have any ide about the problem and solution? Thanks in advance. --0014852d2193248042047ed74ac9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I am using PostgreSQL 8.3.7.
autovacuum is enabled in postgre= sql.conf

I got=A0 a deadlock while vacuuming all databases with vacu= umdb command.

vacuumdb: vacuuming of database "mydb" faile= d: ERROR:=A0 deadlock detected
DETAIL:=A0 Process 1294 waits for AccessExclusiveLock on relation 2662 of d= atabase =A0=A0=A0 ; blocked by process 1807.
Process 1807 waits for Acce= ssShareLock on relation 1259 of database 16389; blocked by process 1294.
I think, because of this lock, deleting a large table (15 million records) = was taking too much time
How can I know the name of the relations 2662 a= nd 1259?

Do you have any ide about the problem and solution?


Thanks in advance.
--0014852d2193248042047ed74ac9--