pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitry Tkach <dmitry@openratings.com>
To: Rajesh Kumar Mallah. <mallah@trade-india.com>
Subject: Re: Preventing DELETEs
Date: Thu, 26 Sep 2002 15:17:43 -0400
Message-ID: <3D935D57.3050205@openratings.com> (raw)
References: <200209270030.16040.mallah@trade-india.com>

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
> 





view thread (7+ messages)  latest in thread

Message-ID: <3D935D57.3050205@openratings.com>
Permalink:  ../3D935D57.3050205@openratings.com/
Also on:    postgresql.org/message-id/3D935D57.3050205@openratings.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dmitry@openratings.com, mallah@trade-india.com
  Subject: Re: Preventing DELETEs
  In-Reply-To: <3D935D57.3050205@openratings.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