From: | Philippe Ferreira <phil(dot)f(at)worldonline(dot)fr> |
---|---|
To: | Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: creating users per database |
Date: | 2006-01-28 09:57:33 |
Message-ID: | 43DB400D.8040102@worldonline.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello,
I don't think you can create users *inside* a database, but for each
database,
you can create global users and make them members of a group having the same
name than your database.
Then, in pg_hba.conf, the folllowing line will give to your users the
permission to
connect to the database they belong :
host samegroup all 0.0.0.0 0.0.0.0 md5
Bye,
Philippe Ferreira.
>Hi all,
>
>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(at)thisdb ...;
>
>or similar.
>
>Was this ever possible in PostgreSQL or is my memory playing
>tricks on me ? I went back through the manuals all the way
>to 6.5 and searched archives.postgresql.com/Google, alas, to
>no avail.
>
>I am aware that I can (and should) restrict users to
>databases by way of pg_hba and friends.
>
>Karsten
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Glaesemann | 2006-01-28 11:21:37 | Re: mac os x compile failure |
Previous Message | Andreas Kretschmer | 2006-01-28 09:54:00 | Re: SQL Lint |