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 E5956D1B8D0 for ; Fri, 31 Oct 2003 12:22:11 +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 78885-08 for ; Fri, 31 Oct 2003 08:21:43 -0400 (AST) Received: from mail.tpi.pl (mail.tpi.pl [193.110.121.18]) by svr1.postgresql.org (Postfix) with ESMTP id 15B47D1B583 for ; Fri, 31 Oct 2003 08:21:40 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mail.tpi.pl (Postfix) with ESMTP id E0C9C47067; Fri, 31 Oct 2003 13:21:41 +0100 (CET) Received: from mail.tpi.pl ([127.0.0.1]) by localhost (silver [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01655-17; Fri, 31 Oct 2003 13:21:41 +0100 (CET) Received: from [10.5.3.38] (lan-out [193.110.121.17]) by mail.tpi.pl (Postfix) with ESMTP id B7F354704A; Fri, 31 Oct 2003 13:21:40 +0100 (CET) Subject: Re: performance problem - 10.000 databases From: Marek Florianczyk To: Matt Clark Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-2 Organization: Message-Id: <1067602452.22237.76.camel@franki-laptop.tpi.pl> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 31 Oct 2003 13:14:12 +0100 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at TP Internet X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/388 X-Sequence-Number: 10949 W li¶cie z pi±, 31-10-2003, godz. 12:25, Matt Clark pisze: > Ooh, I see. That's a tricky one. Do you really need that level of separation? Well, if you talk with the clients, and they promise, that they will not access to other databasess, and specially don't do "drop database my_bes_fried_db" I can put: host any any 0.0.0.0 0.0.0.0 trust in the very beginning of pg_hba.conf ;) greetings ;) Marek > > > > Because every virtual domain has its own database, username and > > password. So one client domain1.com with db: domain1db user: domain1user > > cannot access to second client database domain2.com db: domain2db user: > > domain2user > > pg_hba.conf look like this: > > host domain1db domain1user ip_addr netmask md5 > > host domain2db domain2user ip_addr netmask md5 > > ..... > > .... > > 10.000 records > > ... > > ... > > host domain10000db domain10000user ip_addr netmask md5 > > > > > > You know, one client cannot access to other client database. > > So, if one process is connected to domain1db it cannto access to > > domain2db, and others. > > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings >