Re: Functions as a Security Layer

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Benjamin Stookey <jamstooks(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Functions as a Security Layer
Date: 2006-01-09 03:50:46
Message-ID: 25323.1136778646@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Benjamin Stookey <jamstooks(at)yahoo(dot)com> writes:
> My question is, can I somehow give permissions to the
> function, but not to the user to protect the counter
> table from being modified in any ways I don't want?

Label the function SECURITY DEFINER.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2006-01-09 04:03:17 Re: Oracle DB Worm Code Published
Previous Message Benjamin Stookey 2006-01-09 03:43:24 Functions as a Security Layer