X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5DB65D1EBC5 for ; Tue, 23 Mar 2004 11:25:05 +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 04415-02 for ; Tue, 23 Mar 2004 07:25:06 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 8DC26D1EBB6 for ; Tue, 23 Mar 2004 07:25:03 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i2NBP21Y071852 for ; Tue, 23 Mar 2004 11:25:02 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i2NB6esw068879 for pgsql-performance@postgresql.org; Tue, 23 Mar 2004 11:06:40 GMT From: CoL X-Newsgroups: comp.databases.postgresql.performance Subject: Re: Databases Vs. Schemas Date: Tue, 23 Mar 2004 12:06:42 +0100 Organization: Hub.Org Networking Services Lines: 27 Message-ID: References: <200403222119.50331.josh@agliodbs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040223) X-Accept-Language: en-us, en In-Reply-To: <200403222119.50331.josh@agliodbs.com> To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/387 X-Sequence-Number: 6243 hi Josh Berkus wrote: > Stalin, > > >>We are evaluating the options for having multiple databases vs. schemas on a >>single database cluster for a custom grown app that we developed. Each app >>installs same set of tables for each service. And the service could easily >>be in thousands. so Is it better to have 1000 databases vs 1000 schemas in a >>database cluster. What are the performance overhead of having multiple >>databases vs. schemas (if any). I'm leaning towards having schemas rather >>than databases but i would like to get others opinion on this. Appreciate >>your reply. > > > No performance difference AFAIK. The real question is whether you have to > have queries joining several "databases". If yes, use Schema; if no, use > databases. don't forget the pg_hba.conf :) You need 1000 declaration. Was a thread before, title: performance problem - 10.000 databases Check this: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=1068039213.28814.116.camel%40franki-laptop.tpi.pl&rnum=10&prev=/groups%3Fq%3D1000%2Bdatabase%2Bgroup:comp.databases.postgresql.*%26hl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dcomp.databases.postgresql.*%26selm%3D1068039213.28814.116.camel%2540franki-laptop.tpi.pl%26rnum%3D10 C.