Re: lock entire database

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: lock entire database
Дата
Msg-id 4113C6BD.8070205@bigfoot.com
обсуждение исходный текст
Ответ на Re: lock entire database  (Steve Tucknott <steve@retsol.co.uk>)
Список pgsql-novice
Steve Tucknott wrote:

> We have a similar request.
> We have a 'program' that does database 'structure' updates and do not
> want the users touching the database while this is going on. In Informix
> this was achieved by placing and EXCLUSIVE lock on the database itself.
> Is there a (simple) way of 'locking out' specific users under PostGre to
> achieve the same end?

Database structures change can be inserted inside a transaction, so you don't
need to lock the entire DB:

begin;
<change your schema>;
commit;



Regards
Gaetano Mendola





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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: Tables in one disk and indexes in another ??
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Tables in one disk and indexes in another ??