pg_dumpall blocking other sessions

From: Terry Schmitt <tschmitt(at)schmittworks(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: pg_dumpall blocking other sessions
Date: 2010-09-30 15:50:10
Message-ID: AANLkTi=ztzVi4k1KkAMNLSNKjM7SP5tDBmvb1oPbfrMs@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi All,

I had a situation where a session was getting blocked while per
performing a pg_dumpall.

I could see the pg_dumpall session executing a COPY command on a table
in one schema.
Another user session was attempting to truncate a different table in a
different schema, but in the same database. This session was being
blocked by the pg_dumpall session.

I intend to test this further, but my understanding was that pg_dump
was a non-blocking operation. I'm still on the learning curve with
Postgres 8.4 (actually EnterpriseDB Advanced Server), so maybe I just
need more detail on how pg_dumpall works.
Is the truncate perhaps the problem, but other dml is allowed?

Thanks much,
Terry

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Guillaume Lelarge 2010-09-30 17:11:55 Re: pg_dumpall blocking other sessions
Previous Message Victor Hugo 2010-09-30 13:50:40 PGPOOL-II