insert through function only

From: Marvin McNett <mmcnett(at)cs(dot)ucsd(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: insert through function only
Date: 2004-05-03 22:12:00
Message-ID: 4096C3B0.3080508@cs.ucsd.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Loeke 2004-05-03 22:34:23 GRANT TEMPORARY ON DATABASE to Public
Previous Message Sumita Biswas 2004-05-03 22:01:25 Date addition using Interval