dbTalk Databases Forums  

compartmentalizing users

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss compartmentalizing users in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jwsacksteder@ramprecision.com
 
Posts: n/a

Default compartmentalizing users - 02-27-2004 , 10:01 AM






Is there a way to segregate users by database or schema so that in a hosting
situation you could keep different customers apart? Otherwise, the
unpleasant alternative is to run separate instances of Postgres.

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
  #2  
Old   
Bill Moran
 
Posts: n/a

Default Re: compartmentalizing users - 02-27-2004 , 10:31 AM






jwsacksteder (AT) ramprecision (DOT) com wrote:
Quote:
Is there a way to segregate users by database or schema so that in a hosting
situation you could keep different customers apart? Otherwise, the
unpleasant alternative is to run separate instances of Postgres.
You can add users and assign rights at the database level.

--
Bill Moran
Potential Technologies
http://www.potentialtech.com


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
  #3  
Old   
Bruno Wolff III
 
Posts: n/a

Default Re: compartmentalizing users - 02-27-2004 , 11:23 AM



On Fri, Feb 27, 2004 at 11:01:54 -0500,
jwsacksteder (AT) ramprecision (DOT) com wrote:
Quote:
Is there a way to segregate users by database or schema so that in a hosting
situation you could keep different customers apart? Otherwise, the
unpleasant alternative is to run separate instances of Postgres.
Yes, but the separation isn't total. One solution would be to have a DB
per user. However all users will still be able to see the shared
system tables. This will allow them to see schema (DDL definitions)
of other users. Though they won't be able to get at other user's
data.

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #4  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: compartmentalizing users - 03-03-2004 , 08:16 AM



Bruno Wolff III wrote:
Quote:
On Fri, Feb 27, 2004 at 11:01:54 -0500,
jwsacksteder (AT) ramprecision (DOT) com wrote:
Is there a way to segregate users by database or schema so that in a hosting
situation you could keep different customers apart? Otherwise, the
unpleasant alternative is to run separate instances of Postgres.

Yes, but the separation isn't total. One solution would be to have a DB
per user. However all users will still be able to see the shared
system tables. This will allow them to see schema (DDL definitions)
of other users. Though they won't be able to get at other user's
data.
Take a look at the db_user_namespace option in postgresql.conf. It is
used for this purpose.

--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.