Re: Preventing DELETEs

Поиск
Список
Период
Сортировка
От Dmitry Tkach
Тема Re: Preventing DELETEs
Дата
Msg-id 3D935D57.3050205@openratings.com
обсуждение исходный текст
Ответ на Preventing DELETEs  ("Rajesh Kumar Mallah." <mallah@trade-india.com>)
Ответы Re: Preventing DELETEs
Список pgsql-sql
I think this should work:

alter table mytable owner to postgres;
grant all on my table to public;
revoke delete on my table from public;

I hope, it helps...

Dima

Rajesh Kumar Mallah. wrote:
> Hi ,
> 
> I have a created a database and a table in it,
> 
> I want to prevent "DELETES" on the table in this
> database by everyone except superuser postgres.
> even by me (the creator of this database and table)
> 
> 
> I have tried in many ways (ALTER TABLE REVOKE DELETE .. etc etc)
> 
> but i  always end up with having the permission
> 
> 
> can any one tell me how the prevention can be accomplished?
> 
> thanks in advance.
> 
> regds
> mallah.
> 
> 
> 
> --=20
> Rajesh Kumar Mallah,
> Project Manager (Development)
> Infocom Network Limited, New Delhi
> phone: +91(11)6152172 (221) (L) ,9811255597 (M)
> 
> Visit http://www.trade-india.com ,
> India's Leading B2B eMarketplace.
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
> 




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

Предыдущее
От: Dmitry Tkach
Дата:
Сообщение: Re: Help tuning query
Следующее
От: "Rajesh Kumar Mallah."
Дата:
Сообщение: Re: Preventing DELETEs