Permissions within a function

From: Thomas Hallgren <thhal(at)mailblocks(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Permissions within a function
Date: 2004-12-17 19:12:30
Message-ID: thhal-0IMieAm8zcS4eYYO33XksLYbPsRqQTJ@mailblocks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I'd like some views on the following issue.

The pljava function call handler will resolve a class name using a
loader that in turn uses a specific table in the PostgreSQL database.
Hence, the caller of the function must have select permissions on that
table or the function will fail. I would like to prevent this somehow
but I don't know how to go about that. Is there any way to bypass the
permissions when I do an SPI call from within a call handler somehow?

Regards,
Thomas Hallgren

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vamsi krishna 2004-12-17 19:23:21 Re: Permissions within a function
Previous Message Greg Stark 2004-12-17 18:13:13 Re: [Testperf-general] BufferSync and bgwriter