> Okay, what I'm thinking is to have a pair of commands added to
> PL/pgSQL. For
> the sake of example we'll call them:
>
> ENABLE PRIVLEDGE --> Sets user ID to that of the function's owner
> DISABLE PRIVLEDGE --> Restores the original UID
I hope you mean:
ENABLE PRIVILEGE
DISABLE PRIVILEGE
Chris