From: Kostis Mentzelos <mentzelos@ematic.com>
To: pgsql-admin@postgresql.org
Subject: Re: rename a table
Date: Mon, 25 Jun 2001 00:21:14 +0300
Message-ID: <3B3659CA.BAADC592@ematic.com> (raw)
References: <3B31AB47.2A46172B@ematic.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mentzelos@ematic.com
Subject: Re: rename a table
In-Reply-To: <3B3659CA.BAADC592@ematic.com>
References: <3B31AB47.2A46172B@ematic.com> <3B3659CA.BAADC592@ematic.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox