Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B780147611D for ; Thu, 26 Sep 2002 15:47:02 -0400 (EDT) Received: from mail-relay.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 565DB4760BD for ; Thu, 26 Sep 2002 15:46:59 -0400 (EDT) Received: (qmail 23287 invoked from network); 26 Sep 2002 19:37:31 -0000 Received: from system67.trade-india-local.com (192.168.0.67) by infocom-236-129-del.trade-india.com with SMTP; 26 Sep 2002 19:37:31 -0000 Content-Type: text/plain; charset="iso-8859-1" From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: Dmitry Tkach Subject: Re: Preventing DELETEs Date: Fri, 27 Sep 2002 01:20:40 +0530 User-Agent: KMail/1.4.1 References: <200209270030.16040.mallah@trade-india.com> <3D935D57.3050205@openratings.com> In-Reply-To: <3D935D57.3050205@openratings.com> Cc: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209270120.40845.mallah@trade-india.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/339 X-Sequence-Number: 9616 Hi Dmitry, Got it working.... i made a small change. On Friday 27 September 2002 00:47, you wrote: > I think this should work: > > alter table mytable owner to postgres; > grant all on my table to public; instead of=20 > revoke delete on my table from public; i did : revoke delete on my table from tradein (which is me) ; tradein_clients=3D> BEGIN WORK; delete from users where userid=3D34866; BEGIN ERROR: users: Permission denied. tradein_clients=3D> ROLLBACK ; ROLLBACK tradein_clients=3D> UPDATE users set password=3D'mallah' where userid=3D34= 866; UPDATE 1 tradein_clients=3D>=20 does public not include me?? regds mallah. > > 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. > > > > > > > > --=3D20 > > 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 --=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.