| От | Alvaro Herrera |
|---|---|
| Тема | Re: insert through function only |
| Дата | |
| Msg-id | 20040503230102.GB4638@dcc.uchile.cl обсуждение |
| Ответ на | insert through function only (Marvin McNett <mmcnett@cs.ucsd.edu>) |
| Список | pgsql-general |
On Mon, May 03, 2004 at 03:12:00PM -0700, Marvin McNett wrote: > How do I go about ensuring that data is only added to a table through a > function? I've tried granting execute persission on the function which > inserts data, but can't get it to work unless the user also has insert > permission on the table. I don't want the user to be able to > arbitrarily insert data. Was the function created with SECURITY DEFINER? -- Alvaro Herrera (<alvherre[a]dcc.uchile.cl>) "Porque francamente, si para saber manejarse a uno mismo hubiera que rendir examen... ¿Quién es el machito que tendría carnet?" (Mafalda)
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера