Re: Locking entire database

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Locking entire database
Дата
Msg-id b42b73150709151620j736ff24fx89604e99a23e5ad2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Locking entire database  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-general
On 9/15/07, hubert depesz lubaczewski <depesz@depesz.com> wrote:
> 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.

that would require taking a shared advisory lock for every
transaction...pretty big price to pay imo, but it would work.  I
thought about it for a bit and I don't know if there is any other way
to do it.

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: GRANT on group does not give access to group members
Следующее
От: Paul Lambert
Дата:
Сообщение: Function to determine next payment date