Re: Per-Database Roles - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Per-Database Roles
Date
Msg-id 11224.1338005934@sss.pgh.pa.us
Whole thread Raw
In response to Re: Per-Database Roles  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> * Robert Haas (robertmhaas@gmail.com) wrote:
>> Eh?  Why would the presence of usernames in pg_hba.conf mean that they
>> have to be global objects?

> I havn't had a chance (yet) to look, but perhaps the current code
> attempts to validate the role before figuring out what database is being
> requested?  We'd have to essentially invert that, of course, for this..

Even more to the point, what do you do when the "database" column is
"all", or a list of more than one database name?

It's possible that we could define this away by saying that only
globally known usernames can be listed in pg_hba.conf, but I think
we'll still have implementation problems with doing authentication
for per-database usernames.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jeff Frost
Date:
Subject: Re: Backends stalled in 'startup' state: index corruption
Next
From: Fujii Masao
Date:
Subject: Re: No, pg_size_pretty(numeric) was not such a hot idea