Re: grant problem

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Rajarshi Mukherjee <mukherjee(dot)rajarshi(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: grant problem
Date: 2005-03-22 13:23:44
Message-ID: 20050322132344.GA1452@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Mar 22, 2005 at 17:47:48 +0530,
Rajarshi Mukherjee <mukherjee(dot)rajarshi(at)gmail(dot)com> wrote:
> PLEASE GIVE ME AN EXAMPLE..

Please read the documentation of the CREATE FUNCTION command.

>
>
> On Tue, 22 Mar 2005 06:24:58 -0600, Bruno Wolff III <bruno(at)wolff(dot)to> wrote:
> > On Tue, Mar 22, 2005 at 17:27:25 +0530,
> > Rajarshi Mukherjee <mukherjee(dot)rajarshi(at)gmail(dot)com> wrote:
> > > Hello all,
> > >
> > > i have a function that updates a table. I gave execute grant on it to
> > > a particular user but no grant on the table in question.
> > >
> > > when logging in as that user and executing the function, i get an error
> > > ERROR: permission denied for relation <table_name>
> > >
> > > How can i ensure that any update on this table is only done through
> > > that function, and that the function is oublicly executable?
> >
> > You need to create the function with the security definer property.
> >
> > >
> > > Please provide suggestions.
> > >
> > > Thanks & Regards,
> > > Raj.
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 3: if posting/reading through Usenet, please send an appropriate
> > > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > > message can get through to the mailing list cleanly
> >

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2005-03-22 14:19:53 Re: Clearing locks
Previous Message Michael Fuhr 2005-03-22 13:16:03 Re: Constraint problem