Re: Locking entire database - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: Locking entire database
Date
Msg-id 20070915132456.GA16353@depesz.com
Whole thread Raw
In response to Locking entire database  (Panagiotis Pediaditis <pped@ics.forth.gr>)
Responses Re: Locking entire database  ("Merlin Moncure" <mmoncure@gmail.com>)
List pgsql-general
On Fri, Sep 14, 2007 at 04:48:08PM +0300, Panagiotis Pediaditis wrote:
> Is there some way of locking all database tables in a transaction
> without knowing their names
> or even better just locking the entire database? I know this is bad
> tactics but there is a specific
> case where i need it. Can it be done?

there is no such thing, but you can use "advisory locks" to this
purpose.

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: strange TIME behaviour
Next
From: rihad
Date:
Subject: Re: strange TIME behaviour