Обсуждение: REVOKE DROP tables

Поиск
Список
Период
Сортировка

REVOKE DROP tables

От
"F. Kleinpaul"
Дата:
How can I REVOKE users right to DROP tables?

Thanks
FKleinpaul

Re: REVOKE DROP tables

От
Tom Lane
Дата:
"F. Kleinpaul" <fkleinpaul@gmail.com> writes:
> How can I REVOKE users right to DROP tables?

Only the owner can drop a table.  Perhaps you are looking for
ALTER TABLE ... OWNER ?

            regards, tom lane

Re: REVOKE DROP tables

От
Bruno Wolff III
Дата:
On Sat, Sep 02, 2006 at 08:33:52 -0300,
  "F. Kleinpaul" <fkleinpaul@gmail.com> wrote:
> How can I REVOKE users right to DROP tables?

The owner of a table can always drop it. So you would need to change
the owner of the table using ALTER TABLE table_name OWNER TO new_owner.