Re: Having trouble with backups (was: Re: Crash Recovery)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carlos Moreno <moreno(at)mochima(dot)com>
Cc: PgSQL Performance ML <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Having trouble with backups (was: Re: Crash Recovery)
Date: 2003-01-24 21:01:41
Message-ID: 22650.1043442101@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Carlos Moreno <moreno(at)mochima(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Noah Silverman 2003-01-24 21:55:45 Re: Does "correlation" mislead the optimizer on large
Previous Message Tom Lane 2003-01-24 20:22:21 Re: Does "correlation" mislead the optimizer on large