Re: Having trouble with backups (was: Re: Crash Recovery) - Mailing list pgsql-performance

From Tom Lane
Subject Re: Having trouble with backups (was: Re: Crash Recovery)
Date
Msg-id 22650.1043442101@sss.pgh.pa.us
Whole thread Raw
In response to Having trouble with backups (was: Re: Crash Recovery)  (Carlos Moreno <moreno@mochima.com>)
List pgsql-performance
Carlos Moreno <moreno@mochima.com> writes:
> And the second (and intriguing) problem:  whenever I run pg_dump,
> my system *freezes* until pg_dump finishes.  When I say "system",
> I mean the software that is running and sending data to the PG
> database.

Other people have responded on the assumption that this is a performance
problem, but you should also consider the possibility that it's bad
coding of your application software.  Does your app try to grab
exclusive table locks?  If so, it'll sit there waiting for the pg_dump
to complete.  pg_dump only takes ACCESS SHARE lock on the tables it's
working on, which is the weakest type of lock and does not conflict with
most database operations ... but it does conflict with ACCESS EXCLUSIVE
lock requests.

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Does "correlation" mislead the optimizer on large
Next
From: Noah Silverman
Date:
Subject: Re: Does "correlation" mislead the optimizer on large