X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 048B2D1B502 for ; Wed, 5 Nov 2003 22:01:32 +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 28476-07 for ; Wed, 5 Nov 2003 18:01:03 -0400 (AST) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id F2834D1BB54 for ; Wed, 5 Nov 2003 18:01:00 -0400 (AST) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3874046; Wed, 05 Nov 2003 14:01:45 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-hackers@postgresql.org Subject: Re: Schema boggle... Date: Wed, 5 Nov 2003 13:58:34 -0800 User-Agent: KMail/1.4.3 References: In-Reply-To: Cc: chris@pgsql.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200311051358.34826.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/234 X-Sequence-Number: 46523 Chris, > I work with Marc Fournier, for those who don't know, and have been > working extensively with the schemas feature for Hub.Org's new Account > Management package. Each client's data is stored in a seperate schema > set asside just for them (though they will never have direct access to > it, it helps us "balance" out the data. Each schema has the same set of > tables, with which different data is stored, depending on the client. While this is an interesting use of Schema, it is not, IMHO, a good way to= =20 partition client data. Far better to have monolithic tables with a=20 "client_id" column and then construct *views* which are available in each= =20 schema only to that client. Otherwise, as you've discovered, top-level=20 management becomes a royal pain. I'd be happy to discuss this further on PGSQL-SQL, which is really the=20 appropriate mailing list. --=20 -Josh Berkus Aglio Database Solutions San Francisco