From: Jamie Lawrence <postgres@jal.org>
To: Matt Clark <matt@ymogen.net>
Cc: Marek Florianczyk <franki@tpi.pl>
Cc: pgsql-admin@postgresql.org
Subject: Re: performance problem - 10.000 databases
Date: Fri, 31 Oct 2003 07:54:33 -0500
Message-ID: <20031031125433.GA10459@clueinc.net> (raw)
In-Reply-To: <OAEAKHEHCMLBLIDGAFELKEDJDPAA.matt@ymogen.net>
References: <1067602452.22237.76.camel@franki-laptop.tpi.pl>
<OAEAKHEHCMLBLIDGAFELKEDJDPAA.matt@ymogen.net>
On Fri, 31 Oct 2003, Matt Clark wrote:
> I was more thinking that it might be possible to manage the security at a different level than the DB.
>
We do this with users and permissions.
Each virtual host has an apache config include specifying a db user,
pass (and database, although most of them use the same one).
Permissions on the database tables are set so that a given vhost can
only access their own data.
Our setup is mod_perl. Don't know how one would go about doing this with
PHP, but I imagine it has some mechanism for per-vhost variables or
similar.
-j
--
Jamie Lawrence jal@jal.org
"Remember, half-measures can be very effective if all you deal with are
half-wits."
- Chris Klein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: postgres@jal.org, matt@ymogen.net, franki@tpi.pl
Subject: Re: performance problem - 10.000 databases
In-Reply-To: <20031031125433.GA10459@clueinc.net>
References: <1067602452.22237.76.camel@franki-laptop.tpi.pl> <OAEAKHEHCMLBLIDGAFELKEDJDPAA.matt@ymogen.net> <20031031125433.GA10459@clueinc.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox