pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Guillermo Arias <guillermoariast@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to create a limited user
Date: Tue, 22 Jan 2008 16:23:55 +0100
Message-ID: <20080122152355.GA7655@depesz.com> (raw)
In-Reply-To: <f429e8f2-d2fe-46c4-9101-d7ab0e111320@d21g2000prf.googlegroups.com>
References: <f429e8f2-d2fe-46c4-9101-d7ab0e111320@d21g2000prf.googlegroups.com>

On Mon, Jan 21, 2008 at 03:49:55PM -0800, Guillermo Arias wrote:
> Hi, i have a question:
> 
> I have a database and i want to create a administrator user with total
> control and another that only could make queries and could not see nor
> modify the functions.
> 
> The reason is that in the database that i will distribute are the
> functions with a big part of the software logics and i do not want
> these to be seen by my customers.

basically - you're out of luck. as long as you use pl/pgsql source is in
pg_catalog, and everybody can read it.
you might use another languages (like pl/perlu, or even c) and put the
code outside of sql access.

depesz

-- 
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)



view thread (3+ messages)

Message-ID: <20080122152355.GA7655@depesz.com>
Permalink:  ../20080122152355.GA7655@depesz.com/
Also on:    postgresql.org/message-id/20080122152355.GA7655@depesz.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: depesz@depesz.com, guillermoariast@gmail.com
  Subject: Re: how to create a limited user
  In-Reply-To: <20080122152355.GA7655@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox