Re: [GENERAL] pg_dump and server responsiveness

2007-12-06 Thread Erik Jones
On Dec 6, 2007, at 9:58 AM, Bryan Murphy wrote: On Dec 5, 2007 9:49 PM, Tom Lane <[EMAIL PROTECTED]> wrote: Only access-share locks, but that could still be an issue if anything in your system likes to take exclusive locks. Have you looked into pg_locks to see if anything's getting blocked?

Re: [GENERAL] pg_dump and server responsiveness

2007-12-06 Thread Bryan Murphy
On Dec 6, 2007 10:09 AM, Tom Lane <[EMAIL PROTECTED]> wrote: > Why dump such a table at all? It evidently doesn't contain any > data you need to preserve ... > > I forget which version you are running, but 8.2 pg_dump has an > --exclude-table switch which'd work peachy for this. I did not know ab

Re: [GENERAL] pg_dump and server responsiveness

2007-12-06 Thread Tom Lane
"Bryan Murphy" <[EMAIL PROTECTED]> writes: > It does appear to be lock contention. I took a closer look this > morning, and I noticed our web site was consistently locking up on a > particular table, and there were a number of exclusive locks. I > started eliminating various jobs, and found the o

Re: [GENERAL] pg_dump and server responsiveness

2007-12-06 Thread Bryan Murphy
On Dec 5, 2007 9:49 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > Only access-share locks, but that could still be an issue if anything in > your system likes to take exclusive locks. Have you looked into > pg_locks to see if anything's getting blocked? > > pg_dump is entirely capable of causing an un

Re: [GENERAL] pg_dump and server responsiveness

2007-12-05 Thread Tom Lane
"Bryan Murphy" <[EMAIL PROTECTED]> writes: > When we run pg_dump on our database, our web site becomes completely > unresponsive. ... > Does pg_dump create table locks? It doesn't look like an I/O problem > as far as I can tell... Only access-share locks, but that could still be an issue if anyth

Re: [GENERAL] pg_dump and server responsiveness

2007-12-05 Thread Bryan Murphy
On Dec 5, 2007 10:14 AM, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > Pg_dump uses Access Share if I recall. You can operate normally while > running pg_dump. I am having a hard time parsing that. Could you instead > go over to pgsql.privatepaste.com and send back a paste link? http://pgsql.privat

Re: [GENERAL] pg_dump and server responsiveness

2007-12-05 Thread Joshua D. Drake
Bryan Murphy wrote: When we run pg_dump on our database, our web site becomes completely unresponsive. I thought pg_dump was runnable while the database was still being actively used? It is but it assumes you have resources available. Anyway, I'm not entirely sure why, but here's what I'm s

Re: [GENERAL] pg_dump and server responsiveness

2007-12-05 Thread Bryan Murphy
Sorry about the formatting, here's the dump as a text file. Thanks, Bryan On Dec 5, 2007 10:05 AM, Bryan Murphy <[EMAIL PROTECTED]> wrote: > When we run pg_dump on our database, our web site becomes completely > unresponsive. I thought pg_dump was runnable while the database was > still being ac