Re: stopping access to a database

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: stopping access to a database
Дата
Msg-id 1043785370.9546.69.camel@tokyo
обсуждение исходный текст
Ответ на stopping access to a database  (Dennis Gearon <gearond@cvc.net>)
Ответы Re: stopping access to a database  (Dennis Gearon <gearond@cvc.net>)
Список pgsql-general
On Tue, 2003-01-28 at 11:50, Dennis Gearon wrote:
> I would like to stop accesses to database 2, delete all records in the 2-4 tables, and reimport
> new records. How would I do this as a user on the system, not as an admin?

How about starting a transaction, acquiring an exclusive lock on all the
tables using LOCK TABLE, deleting & updating the data, and then
committing the transaction?

Cheers,

Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC




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

Предыдущее
От: "Zac Hillier"
Дата:
Сообщение: unsubscribe
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: Status of tablespaces