Re: [JDBC] Thoughts on a Isolation/Security problem.

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Cc: pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Thoughts on a Isolation/Security problem.
Date: 2006-04-18 09:58:12
Message-ID: 4444B834.1030107@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-jdbc pgsql-sql

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.

HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Luckys 2006-04-18 09:58:51 Re: [SQL] Thoughts on a Isolation/Security problem.
Previous Message Tom Lane 2006-04-18 03:57:04 Re: DDL commands don't handle OID wrap

Browse pgsql-general by date

  From Date Subject
Next Message Luckys 2006-04-18 09:58:51 Re: [SQL] Thoughts on a Isolation/Security problem.
Previous Message Alban Hertroys 2006-04-18 09:16:04 Re: select with date_part and month failure....

Browse pgsql-jdbc by date

  From Date Subject
Next Message Luckys 2006-04-18 09:58:51 Re: [SQL] Thoughts on a Isolation/Security problem.
Previous Message Kris Jurka 2006-04-18 06:38:26 Re: Sun Java Creatror2 postgresql 8.1

Browse pgsql-sql by date

  From Date Subject
Next Message Luckys 2006-04-18 09:58:51 Re: [SQL] Thoughts on a Isolation/Security problem.
Previous Message Bruno Wolff III 2006-04-17 19:59:25 Re: Please help with a query..