pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Glenn MacGregor <gtm@oracom.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: limiting access to (through) views
Date: Wed, 16 Jan 2002 09:23:14 -0600
Message-ID: <20020116152314.GA26996@wolff.to> (raw)
In-Reply-To: <013401c19e9c$b3d4f790$4d00a8c0@catamount>
References: <013401c19e9c$b3d4f790$4d00a8c0@catamount>

On Wed, Jan 16, 2002 at 09:47:21AM -0500,
  Glenn MacGregor <gtm@oracom.com> wrote:
> Hi All,
> 
> I need to limit access to certain rows of a table.  It was suggested to do this via a view, but it seems to me that I need the current username that is logged in to do this.  Also I need to get info from another table inorder to make this work.  Can I have multiple selects in a single view using the output of one in another?

You would want to use session_user or current_user. For now these are both
the same, but eventually they may not be.



view thread (6+ messages)  latest in thread

Message-ID: <20020116152314.GA26996@wolff.to>
Permalink:  ../20020116152314.GA26996@wolff.to/
Also on:    postgresql.org/message-id/20020116152314.GA26996@wolff.to

 · 

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: bruno@wolff.to, gtm@oracom.com
  Subject: Re: limiting access to (through) views
  In-Reply-To: <20020116152314.GA26996@wolff.to>

* 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