db design question

From: "Chris Ochs" <chris(at)paymentonline(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: db design question
Date: 2004-06-01 13:45:55
Message-ID: 025701c447de$c31399d0$250a8b0a@chris
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Running Totals and other stuff....Just wanted to see if there was a much better way of doing this. We have a web application where user data needs to be separated as much as possible and where access needs to be controlled and restricted on several levels. Most data coming into the system is from anonymous sources so the application itself needs restricted insert/update rights, and our clients need pretty much full access to the data but we still want to funnel all access through predefined views and functions.

The best thing I have come up with so far is to create a user and schema for each client. Client's accessing the database provide thier username and password, in addition to our own pre authentication and our code does all database access through views and functions. Now for new transactions that come in from the anonymous sources, I would create a secondary user for every schema that has limited permissions for inserting new data.

We also have a Kerberos infrastructure and could use that for database authentication.

The number of schema's will be fairly large (in the thousands depending on how many users per database). This plan I think offers the best separation of data and permissions without using completely separate databases. Any thoughts?

Chris

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2004-06-01 13:48:02 Re: book for postgresql
Previous Message zhicheng wang 2004-06-01 13:43:03 Re: after using pg_resetxlog, db lost