Re: Couple of admin Qs

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Lou Picciano" <loupicciano(at)comcast(dot)net>, "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Couple of admin Qs
Date: 2010-08-20 16:07:55
Message-ID: 4C6E620B0200002500034991@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Lou Picciano <loupicciano(at)comcast(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Joshua D. Drake 2010-08-20 16:28:59 Re: Couple of admin Qs
Previous Message Lou Picciano 2010-08-20 12:46:42 Couple of admin Qs