Re: [NOVICE] Insert Only Postgresql - Mailing list pgsql-general

From Merlin Moncure
Subject Re: [NOVICE] Insert Only Postgresql
Date
Msg-id b42b73150609081739j641403e6k6884f8fde9b27d4b@mail.gmail.com
Whole thread Raw
In response to Re: [NOVICE] Insert Only Postgresql  ("Brandon Aiken" <BAiken@winemantech.com>)
List pgsql-general
On 9/8/06, Brandon Aiken <BAiken@winemantech.com> 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

pgsql-general by date:

Previous
From: Francisco Reyes
Date:
Subject: Re: Determining right size for max_fsm_pages on large
Next
From: "Merlin Moncure"
Date:
Subject: Re: Stored Procedure performance / elegance question