X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C16639FA621 for ; Mon, 3 Jul 2006 14:00:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 27022-10 for ; Mon, 3 Jul 2006 14:00:31 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web31809.mail.mud.yahoo.com (web31809.mail.mud.yahoo.com [68.142.207.72]) by postgresql.org (Postfix) with SMTP id 4E5DF9FA232 for ; Mon, 3 Jul 2006 14:00:28 -0300 (ADT) Received: (qmail 37008 invoked by uid 60001); 3 Jul 2006 17:00:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=m4kxP/9i8Qk7TE9p5NKnZgcbovOQ4o/PdW1+nKE9zHMS8H2h447Pus/L6F3Mi+p6NQW2WIitCBKLM8aYqHwcy7ji70c/Sj1Q2GWJq0NUBEYIgcVAQWrTldR/yc80lF16T9BhMJriElquSwFWkJWipA2HdXbfloXbdI9rYWkug4Q= ; Message-ID: <20060703170027.37006.qmail@web31809.mail.mud.yahoo.com> Received: from [65.211.203.26] by web31809.mail.mud.yahoo.com via HTTP; Mon, 03 Jul 2006 10:00:27 PDT Date: Mon, 3 Jul 2006 10:00:27 -0700 (PDT) From: Richard Broersma Jr Subject: Re: Is postgresql ca do the job for software deployed in ASP ou SaaS mode? To: David Gagnon , pgsql-performance@postgresql.org In-Reply-To: <44A9026D.7090903@siunik.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/8 X-Sequence-Number: 19868 > Typically I will have 1db per client and around 150 tables per db. So > since I hope I didn`t work all those year for nothing .. I expect to > have bunch of clients witch means the same amount of db since I have 1 > db/client. > > Can I hope having several hundred of db on 1 db server? Like 250 dbs = > 250 client = 360 000 tables !!! > So is there a limit for the number of db in the db server ?(this spec is > not on the website) I'll take a stab at this question. Each table and database are referenced by an OID. So the sum(tables) + sum(database) << max-size(OID). In my case max-size of OID (I believe) is 9223372036854775807. So if you limited yourself to 1% of the OIDs for use as tables and databases then you could potentially have 92233720368547758 table or database. Each database create produces a directory with the database OID: ./data/base/10792 ./data/base/10793 ./data/base/16814 ... ... since the creation of a new db produces a directory, one limitation would come from your file-systems limitation on the number of sub-directories that are allowed. Each table with-in the database is assigned an OID and is located inside the DB directory. So if there is a file-system limitation on the number of files with-in a given directory it would also be a limit to the number of tables that could be created for each database. The only other limitation that I am aware of is the storage capacity of you DB server. If there are additional limitations beyond these I would be interested in knowing about them and adding them to the http://www.postgresql.org/about/ we be helpful also. Regards, Richard Broersma Jr.