X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3F9DAD1B592 for ; Fri, 31 Oct 2003 12:55:08 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89021-01 for ; Fri, 31 Oct 2003 08:54:40 -0400 (AST) Received: from frankenbride.clueinc.net (xd84b4366.ip.e-nt.net [216.75.67.102]) by svr1.postgresql.org (Postfix) with ESMTP id D49F5D1B55A for ; Fri, 31 Oct 2003 08:54:36 -0400 (AST) Received: by frankenbride.clueinc.net (Postfix, from userid 16220) id BC2B1B8B5; Fri, 31 Oct 2003 07:54:33 -0500 (EST) Date: Fri, 31 Oct 2003 07:54:33 -0500 From: Jamie Lawrence To: Matt Clark Cc: Marek Florianczyk , pgsql-admin@postgresql.org Subject: Re: performance problem - 10.000 databases Message-ID: <20031031125433.GA10459@clueinc.net> Mail-Followup-To: Matt Clark , Marek Florianczyk , pgsql-admin@postgresql.org References: <1067602452.22237.76.camel@franki-laptop.tpi.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Organization: clue inc X-URL: http://www.clueinc.net/ X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/392 X-Sequence-Number: 10953 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