GRANTing privileges to a plpgsql function doesn't give required result (pg 7.3.4)

From: "Greg" <greg(dot)wickham(at)grangenet(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: GRANTing privileges to a plpgsql function doesn't give required result (pg 7.3.4)
Date: 2004-02-23 23:29:02
Message-ID: 004c01c3fa64$d321b0e0$c53f5ec0@aarnetgw
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi,

I'm implementing a database with very 'restrictive'
privileges. However I've hit a dead end trying to
solve one issue.

When GRANTing execute to a plpgsql function it
appears to run with the priviledge of the user and
NOT with the priviledges of the owner of the function.

This is causing a problem as within the function
an insertion into a table owned by the function owner
is required.

It's not acceptable to grant INSERT on this table
for the function executor as the whole point is about
controlling access to the table within the function.

Does anyone have any suggestions as to what I may be
doing wrong? (Or how can I do it better?)

This is with postgresql 7.3.4

Many thanks,

-Greg

--

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2004-02-24 00:36:37 Re: Found this in the server log on MAC OSX
Previous Message Martijn van Oosterhout 2004-02-23 19:26:11 Re: backup and restore questions