Re: speeding up pg_dump? - Mailing list pgsql-novice

From Christopher Browne
Subject Re: speeding up pg_dump?
Date
Msg-id m3k6dpq0y1.fsf@mobile.int.cbbrowne.com
Whole thread Raw
In response to speeding up pg_dump?  (<me@alternize.com>)
List pgsql-novice
> From: "Tom Lane" <tgl@sss.pgh.pa.us>
>> Every transaction takes ExclusiveLock on its own transaction ID.  That
>> in itself isn't an issue.  You sure you don't see any rows with granted
>> = 'f' while pg_dump is running and everything seems blocked?
>
> yes. during a pg_dump, there are like 30 locks - all of then granted (t)

That makes sense; once you are dumping the 30th table, there will be
about 30 locks, although they should only be AccessShared locks.

> i'll set up pg8.1.1 tomorrow on a new server to check if its db/web or
> server related...

You can expect to see a bunch of AccessShared locks associated with
the transaction used for the pg_dump.

The interesting question is what *else* is trying to grab a lock; that
"something else" is presumably the root of your troubles.
--
wm(X,Y):-write(X),write('@'),write(Y). wm('cbbrowne','gmail.com').
http://linuxfinances.info/info/slony.html
Keeping instructions  and operands  in  different memories  saves  .20
(.09) microseconds.

pgsql-novice by date:

Previous
From: "Joeseph Blowseph"
Date:
Subject: Restoring to a different tablespace
Next
From: Christopher Browne
Date:
Subject: Re: limiting number of allowed rows in a table