Re: Setuid functions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mark Volpe <volpe(dot)mark(at)epamail(dot)epa(dot)gov>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Setuid functions
Date: 2001-06-23 15:53:03
Message-ID: Pine.LNX.4.30.0106231748290.724-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Volpe writes:

> I know this topic was discussed a few months ago, but I'm wondering if any
> decisions have been reached on if, how, and when setuid functions and triggers
> might be implemented. If not, I have an idea to throw at it.

Add a boolean column to pg_proc, when that column is true you select a
special function class handler in fmgr_info(), that function handler will
save and restore the user id and then call the real function. See
backend/utils/fmgr/fmgr.c for the action.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-06-23 16:32:17 Re: [GENERAL] Multiple Indexing, performance impact
Previous Message Tom Lane 2001-06-23 15:51:42 Re: Good name for new lock type for VACUUM?