Re: [NOVICE] Insert Only Postgresql

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

Re: [NOVICE] Insert Only Postgresql

От:
"Brandon Aiken" <BAiken@winemantech.com>
Дата:

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

От:
"Karen Hill" <karen_hill22@yahoo.com>
Дата:
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"/>
> 
> 
>
> 
>
> 
>
> 
> >

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.

> >
> > > > > > ------_=_NextPart_001_01C6D38C.2205C945--

Re: [NOVICE] Insert Only Postgresql

От:
"Merlin Moncure" <mmoncure@gmail.com>
Дата:
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
FAQ