From: | Shane Ambler <pgsql(at)007Marketing(dot)com> |
---|---|
To: | Furface <furface(at)omnicode(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to allow users to log on only from my application |
Date: | 2007-01-30 07:25:34 |
Message-ID: | 45BEF2EE.7070509@007Marketing.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Furface wrote:
> 2. Restricting certain tables to certain users. Well that's easy. You
> just use the "grant" command.
>
> 3. Restricting certain columns of certain tables to certain users. This
> would be something like an "approved" or "active" column where only
> administrators can set these values. This would have to be done with
> triggers and procedures.
>
What I would do here is break the table in two. One table is where the
user enters their data, the other is where the admin enters their's and
use privileges to stop the user seeing the admin section.
I may think about using an archive table that stores approved timesheets
when the admin approves the timesheet, and prevent users access
(preventing them from accessing other than current data)
--
Shane Ambler
pgSQL(at)007Marketing(dot)com
Get Sheeky @ http://Sheeky.Biz
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2007-01-30 07:47:48 | Re: PostgreSQL 9.0 |
Previous Message | Dawid Kuroczko | 2007-01-30 07:06:38 | Re: PostgreSQL 9.0 |