Hello!

I wonder if I can grant access to two or more databases for one user, without
letting others connect to the databases.

Now I have the following entries in pg_hba.conf:

-- cut --
host         sameuser    0.0.0.0       0.0.0.0           crypt
host         sameuser    0.0.0.0       0.0.0.0           crypt

local        template1                                   trust
host         template1   127.0.0.1     255.255.255.255   trust
-- cut --

So each user got access to one database, which equals to his username,
but I found no possibility mentioned in the docs, which would allow an
entry like this:

host  username  dbname  0.0.0.0  0.0.0.0  crypt

which would grant access to the database dbname for user username.
Is there any possibility to do something like this?

--
Robert Niess
begin:vcard 
n:Niess;Robert
x-mozilla-html:FALSE
org:University of Karlsruhe
adr:;;Klosterweg 28;Karlsruhe;;76131;Germany
version:2.1
email;internet:[EMAIL PROTECTED]
title:Student
fn:Robert Niess
end:vcard

Reply via email to