Re: [GENERAL] Functions as a Security Layer

2006-01-08 Thread Benjamin Stookey
Thanks so much. That did the trick! --- Tom Lane <[EMAIL PROTECTED]> wrote: > Benjamin Stookey <[EMAIL PROTECTED]> 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 > wan

Re: [GENERAL] Functions as a Security Layer

2006-01-08 Thread Shelby Cain
--- Benjamin Stookey <[EMAIL PROTECTED]> wrote: > Functions, with some databases, are used as security > layers so that a user that wouldn't otherwise have > read/write privileges on a table can perform some sort > of controlled update. > > I've written a function to serve as a type of counter

Re: [GENERAL] Functions as a Security Layer

2006-01-08 Thread Tom Lane
Benjamin Stookey <[EMAIL PROTECTED]> 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 ---