Re: viewing source code - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: viewing source code
Date
Msg-id 20071214171127.GE6269@alvh.no-ip.org
Whole thread Raw
In response to Re: viewing source code  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-performance
Joshua D. Drake wrote:

> > > However, in the current configuration, all users with permission to
> > > log in can see all source code.  They don't have rights to execute
> > > the functions but they can see the source code for them.  Shouldn't
> > > I be able to revoke both the ability to execute and the ability to
> > > see functions?
>
> Yes and know. If your functions are interpreted then no, I don't see
> any reason for this feature, e.g; python,perl,plpgsql,sql,ruby. I can
> read them on disk anyway.

If you have access to the files, which is not necessarily the case.
Random users, in particular, won't.

Maybe this can be done by revoking privileges to pg_proc.  I am sure it
can be made to work.  It does work for pg_auth_id, and nobody says that
"they can read the passwords from disk anyway."

--
Alvaro Herrera                          Developer, http://www.PostgreSQL.org/
"We're here to devour each other alive"            (Hobbes)

pgsql-performance by date:

Previous
From: "Campbell, Lance"
Date:
Subject: Large Objects and Toast
Next
From: "Kevin Grittner"
Date:
Subject: VACUUM FREEZE output more than double input