security for row level but not based on Database user's login - Mailing list pgsql-performance

From Friends
Subject security for row level but not based on Database user's login
Date
Msg-id 1145615328.300612.56380@e56g2000cwe.googlegroups.com
Whole thread Raw
Responses Re: security for row level but not based on Database user's
List pgsql-performance
Hi

I need to set security for row level but not based on Database user's
login. It should be based on the user table login. For the particular
user I need to allow only the particular records to access insert,
update delete and select.

Let me explain clearly

For example think we are using asp/asp.net website

Eg:

www.test.com

So take this is our website and if you try this URL then you will get a
window for Login name and password.
  For example the Login name is windows user name (Here windows user
means server windows user and not client) and windows password. So if
you have login user id you can able to login in our site and we have
another check. We have our own usertable this table consist all the
user login names and user rights. We will check the windows user who
login in our site has rights in the usertable I mean he is present in
the usertable if he is not present then we will display a message you
have no rights to access this site.
  If he has login id in our usertable then he allowed viewing our
pages. Still if he has the login id we will check the user who login
has how much right to access to each page and the records of each table
its all depend on the user rights.

   So, here I need the row level security. For each and every table we
need to check the corresponding user and executing the record produce
lot of business logic problem for us.
 So after the user login we need automatically to set row level
security for all the tables. Based on the user who login.

So from there if we try select * from <tablename> then we can only able
to get the allowed records to select, insert, update, delete.

Please can some one help how to solve this?

Note:

For some help you can refer the below URL (See in that they only given
about the row level and column level security for each database users
not for our required concept)

http://www.microsoft.com/technet/prodtechnol/sql/2005/multisec.mspx


Thanks in advance
Rams


pgsql-performance by date:

Previous
From: Will Reese
Date:
Subject: Slow deletes in 8.1 when FKs are involved
Next
From: "Greg Stumph"
Date:
Subject: Worsening performance with 7.4 on flash-based system