pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedhow to create a limited user
3+ messages / 3 participants
[nested] [flat]
* how to create a limited user
@ 2008-01-21 23:49 Guillermo Arias <guillermoariast@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Guillermo Arias @ 2008-01-21 23:49 UTC (permalink / raw)
To: pgsql-admin
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.
Thanks in advance, Guillermo
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: how to create a limited user
@ 2008-01-22 14:57 PostgreSQL Admin <postgres@productivitymedia.com>
parent: Guillermo Arias <guillermoariast@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: PostgreSQL Admin @ 2008-01-22 14:57 UTC (permalink / raw)
To: Guillermo Arias <guillermoariast@gmail.com>; +Cc: pgsql-admin
Did you even look for the information on postgresql.org?
http://www.postgresql.org/docs/8.2/interactive/sql-createuser.html
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: how to create a limited user
@ 2008-01-22 15:23 hubert depesz lubaczewski <depesz@depesz.com>
parent: Guillermo Arias <guillermoariast@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: hubert depesz lubaczewski @ 2008-01-22 15:23 UTC (permalink / raw)
To: Guillermo Arias <guillermoariast@gmail.com>; +Cc: pgsql-admin
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)
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2008-01-22 15:23 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-01-21 23:49 how to create a limited user Guillermo Arias <guillermoariast@gmail.com>
2008-01-22 14:57 ` PostgreSQL Admin <postgres@productivitymedia.com>
2008-01-22 15:23 ` hubert depesz lubaczewski <depesz@depesz.com>
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