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 A2B20D1B49B; Mon, 22 Mar 2004 22:04:41 +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 94251-03; Mon, 22 Mar 2004 18:04:50 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7DADDD1B44E; Mon, 22 Mar 2004 18:04:38 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2MM4o9R008797; Mon, 22 Mar 2004 17:04:50 -0500 (EST) To: "Subbiah, Stalin" Cc: "'pgsql-admin@postgresql.org'" , "'pgsql-performance@postgresql.org'" Subject: Re: Databases Vs. Schemas In-reply-to: References: Comments: In-reply-to "Subbiah, Stalin" message dated "Mon, 22 Mar 2004 13:30:24 -0800" Date: Mon, 22 Mar 2004 17:04:50 -0500 Message-ID: <8796.1079993090@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/292 X-Sequence-Number: 12861 "Subbiah, Stalin" writes: > Is it better to have 1000 databases vs 1000 schemas in a > database cluster. You almost certainly want to go for schemas, at least from a performance point of view. The overhead of a schema is small (basically one more row in pg_namespace) whereas the overhead of a database is not trivial. The main reason you might not want to use schemas is if you want fairly airtight separation between different services. Separate databases would prevent services from looking at each others' catalog entries. regards, tom lane