Re: Postgresql data backup

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Rajkumar Selvaraj <s_rajkumar2000(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgresql data backup
Date: 2001-09-14 22:29:11
Message-ID: Pine.BSF.4.21.0109141526440.43854-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 13 Sep 2001, [iso-8859-1] Rajkumar Selvaraj wrote:

> Please mail me ur replies on the following :
> 1).I would like to know how to stop users who have
> already opened up sessions with my database without
> stopping the postmaster
> service.
Well, the problem is that if you stop them, any modifications
done by those users in a transaction will be lost, but you
could probably kill the postgres processes opened for each
user.

> 2).I would also like to know whether the command
> pg_dump prevents any user from writing or modifying my
> database until
> th process is completed. If not,will it ensure
> transactional integrity until the backup process is
> completed ?
No it doesn't, but IIRC, pg_dump is going to run as one
transaction meaning that it should see a consistant state
of the database which wouldn't include any non-committed
transactions at the start of the dump.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ljb 2001-09-14 22:37:20 Re: Strange select query
Previous Message Stephan Szabo 2001-09-14 22:26:08 Re: get certain # of recs