Re: [NOVICE] Insert Only Postgresql

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: [NOVICE] Insert Only Postgresql
Дата
Msg-id b42b73150609081739j641403e6k6884f8fde9b27d4b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [NOVICE] Insert Only Postgresql  ("Brandon Aiken" <BAiken@winemantech.com>)
Список 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 по дате отправления:

Предыдущее
От: Francisco Reyes
Дата:
Сообщение: Re: Determining right size for max_fsm_pages on large
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Stored Procedure performance / elegance question