pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Lou Picciano <loupicciano@comcast.net>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Couple of admin Qs
Date: Fri, 20 Aug 2010 11:07:55 -0500
Message-ID: <4C6E620B0200002500034991@gw.wicourts.gov> (raw)
In-Reply-To: <222302061.247711.1282308402600.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
References: <222302061.247711.1282308402600.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>

Lou Picciano <loupicciano@comcast.net> wrote:
 
> - Is there a privileges incantation which will limit a user's
> view, within a given cluster, to only those databases to which he
> can connect? Ie, he'd see only the 3 or 4 databases to which he
> has privileges? Does the privileges model permit this level of
> granularity? 
 
No.  Perhaps some day, when we get row-level permissions....
 
> - Can someone point to an example of how to 'trigger' an event
> when a user logs on/off, or performs other non-data-touching
> actions, such as connecting to another database?
 
There might be a hook, but those aren't really covered in user
documentation, since they're intended more for people writing
features for the database itself.  I've never gone looking for
those, since I don't have an application for them, so I don't really
know.
 
> Can't build a trigger on a function call, right? Has to 
> be based on a data change? 
 
Well, a trigger is just a way to automatically call a function.  You
can do that within any particular function without needing to wire
it up with a trigger definition.
 
-Kevin



view thread (3+ messages)  latest in thread

Message-ID: <4C6E620B0200002500034991@gw.wicourts.gov>
Permalink:  ../4C6E620B0200002500034991@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4C6E620B0200002500034991@gw.wicourts.gov

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, loupicciano@comcast.net
  Subject: Re: Couple of admin Qs
  In-Reply-To: <4C6E620B0200002500034991@gw.wicourts.gov>
  References: <222302061.247711.1282308402600.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> <4C6E620B0200002500034991@gw.wicourts.gov>

* 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