Re: rename a table - Mailing list pgsql-admin

From Kostis Mentzelos
Subject Re: rename a table
Date
Msg-id 3B3659CA.BAADC592@ematic.com
Whole thread Raw
In response to rename a table  (Kostis Mentzelos <mentzelos@ematic.com>)
Responses Re: Re: rename a table  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
List 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 by date:

Previous
From: "Lotus Luby-Loo"
Date:
Subject: Strange security behaviour!
Next
From: "Lotus Luby-Loo"
Date:
Subject: ...