Re: [NOVICE] Insert Only Postgresql

Поиск
Список
Период
Сортировка
Искать
От
Merlin Moncure
Тема
Re: [NOVICE] Insert Only Postgresql
Дата
Msg-id
b42b73150609081739j641403e6k6884f8fde9b27d4b@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Re: Insert Only Postgresql "Karen Hill" <karen_hill22@yahoo.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
В списке pgsql-general по дате отправления
От: Francisco Reyes
Дата:
От: Merlin Moncure
Дата:
FAQ