Re: creating users per database - Mailing list pgsql-general

From Tom Lane
Subject Re: creating users per database
Date
Msg-id 11901.1138464249@sss.pgh.pa.us
Whole thread Raw
In response to creating users per database  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: creating users per database
List pgsql-general
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:
> I have a faint memory of it being possible to create users
> "inside" *one* given database by way of a particular "create
> user" syntax along the lines of:

>  create user newuser@thisdb ...;

There is the db_user_namespace kluge^H^H^H^H^Hparameter, but it's
pretty ugly.  Do you really need DB-specific user names, or just
a more convenient way to limit which DBs a user can connect to?  If
the latter, the "samegroup" technique Philippe mentions seems like
a good bet.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Basic questions about PQprepare()
Next
From: Philippe Ferreira
Date:
Subject: Re: My very first PL/pgSQL procedure...