Re: [NOVICE] Insert Only Postgresql
Re: [NOVICE] Insert Only Postgresql
Sure. Any RDBMS can do that. Just create a user account (login role for PostgreSQL) and only grant the INSERT privilege to them on your tables, then connect with that account with your program. Any DELETE or UPDATE statements will automatically fail.
--
Brandon Aiken
CS/IT Systems Engineer
From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Solomon Asare
Sent: Friday, September 08, 2006 4:51 PM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] Insert Only Postgresql
Hi All,
pls, is there an Insert only version of postgreql or any other known database? NO deletes, no updates. Inserts only! Any leads, please?
Best Regards,
solomon.
Re: Insert Only Postgresql
Don't forget that one can create a DO NOTHING rules for DELETE and UPDATE in addition to the INSERT only privilege. This will prevent even the owner of the table from doing any accidental updating or deleting. "Brandon Aiken" wrote: > Sure. Any RDBMS can do that. Just create a user account (login role > for PostgreSQL) and only grant the INSERT privilege to them on your > tables, then connect with that account with your program. Any DELETE or > UPDATE statements will automatically fail. > > > > -- > > Brandon Aiken > > CS/IT Systems Engineer > > ________________________________ > > From: pgsql-novice-owner@postgresql.org > [mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Solomon Asare > Sent: Friday, September 08, 2006 4:51 PM > To: pgsql-novice@postgresql.org > Subject: [NOVICE] Insert Only Postgresql > > > > Hi All, > pls, is there an Insert only version of postgreql or any other known > database? NO deletes, no updates. Inserts only! Any leads, please? > > Best Regards, > solomon. > > > ------_=_NextPart_001_01C6D38C.2205C945 > Content-Type: text/html > Content-Transfer-Encoding: quoted-printable > X-Google-AttachSize: 4226 > > > > > > > namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/> > > > > > > > >> >> > > > > > ------_=_NextPart_001_01C6D38C.2205C945--Sure. Any RDBMS can do that. Just create > a user account (login role for PostgreSQL) and only grant the INSERT privilege > to them on your tables, then connect with that account with your program. Any > DELETE or UPDATE statements will automatically fail.
> >> >
> >> >> >> >-- style='color:navy'>
> >> >> >face=Arial>Brandon > Aiken
> >> >> >CS/IT Systems Engineer
> >> >> >face="Times New Roman"> > >> >
> >From: face=Tahoma> > pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org] style='font-weight:bold'>On Behalf Of Solomon Asare
> >
> Sent: Friday, September 08, 2006 > 4:51 PM
> To: pgsql-novice@postgresql.org
> Subject: [NOVICE] Insert Only > Postgresql> >
Hi All,
> >
> pls, is there an Insert only version of postgreql or any other known database? > NO deletes, no updates. Inserts only! Any leads, please?
>
> Best Regards,
> solomon.
Re: [NOVICE] Insert Only Postgresql
On 9/8/06, Brandon Aiken wrote: > Sure. Any RDBMS can do that. Just create a user account (login role for > PostgreSQL) and only grant the INSERT privilege to them on your tables, then > connect with that account with your program. Any DELETE or UPDATE > statements will automatically fail. all tables in postgresql have insert, update, and delete rights you can grant or revoke. If you want to be smart and save time, you can make a procedure to query information_schema and do this automatically for you with some dynamic sql [hi, karen!] and just call it whenever you make new tables. merlin