pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Markus Schaber <schabi@logix-tt.com>
Cc: pgsql-sql@postgresql.org, <pgsql-admin@postgresql.org>
Cc: pgsql-general@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Thoughts on a Isolation/Security problem.
Date: Tue, 18 Apr 2006 14:26:14 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0604181413330.24984-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <4444B834.1030107@logix-tt.com>

O Markus Schaber Ýãñáøå óôéò Apr 18, 2006 :

> Hi, Achilleus,
> 
> Achilleus Mantzios wrote:
> 
> > Now i am thinking of restructuring the whole architecture as:
> > - Create one EAR app for every mgmt company
> > - Create one DB USER for every mgmg company
> > - Create one SCHEMA (same as the USER) for every mgmt company 
> > (mgmtcompany1,mgmtcompany2,etc...)
> 
> We're doing a very similar thing here for one of our legacy apps, which
> luckily does not know anything about schemas, and so the search_path
> trick does work.
> 
> However, for most "global" tables we have views with insert/update/
> delete rules in the specific schemas, and such shield the application
> from directly accessing the global data. We even need to mere local and
> global data this way in some cases.
> 
> It is ugly, but it works fine and is manageable.

If no exotic/contrib code is to be used then i think
splitting into separate Schemas (versus separate DBs) will make future 
consolidation/stats/accounting (global data) code easy to write.
(Unless ofcourse some real cross-db sql join features appear which is not 
the case at the moment).
Why do you think its ugly after all?
> 
> HTH,
> Markus
> 

-- 
-Achilleus




view thread (8+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0604181413330.24984-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0604181413330.24984-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0604181413330.24984-100000@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com, schabi@logix-tt.com, pgsql-admin@postgresql.org, pgsql-general@postgresql.org, pgsql-jdbc@postgresql.org
  Subject: Re: [JDBC] Thoughts on a Isolation/Security problem.
  In-Reply-To: <Pine.LNX.4.44.0604181413330.24984-100000@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox