Re: rename a table

Поиск
Список
Период
Сортировка
От Kostis Mentzelos
Тема Re: rename a table
Дата
Msg-id 3B3659CA.BAADC592@ematic.com
обсуждение исходный текст
Ответ на rename a table  (Kostis Mentzelos <mentzelos@ematic.com>)
Ответы Re: Re: rename a table
Список pgsql-admin
In order to rename the table safely, I want to REVOKE INSERT on that
table.

But there is a problem because if there are users connected to
database then REVOKE command wait until they disconnect.
How can I found out who are connected to database? Can I kill them?

--

I found out that SERIAL type creating a unique index. (RTFM)
I also found out that using ALTER TABLE x RENAME TO y I can rename
primary
keys and indexes.

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

Предыдущее
От: "Lotus Luby-Loo"
Дата:
Сообщение: Strange security behaviour!
Следующее
От: "Lotus Luby-Loo"
Дата:
Сообщение: ...