From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruno Wolff III <bruno(at)wolff(dot)to> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: idle connection timeout ... |
Date: | 2002-10-26 20:06:09 |
Message-ID: | 200210262006.g9QK69p28962@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bruno Wolff III wrote:
> On Sat, Oct 26, 2002 at 01:04:55 -0400,
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
> >
> > The per db/user stuff is stored in the pg_database/pg_shadow tables per
> > row, so they exist in permanent storage.
>
> I have a question about this. This stuff is per user OR per db right?
> When I see per db/user I get the impression that users can have different
> settings depending on which db they connect to. But looking at alter
> database and alter user it looks like settings are per database or
> per user, but there isn't a way to (in general) set something that
> applies to a particular user when connecting to a particular database.
> If there is a way to do that, I would be interested in a hint where to
> look in the documentation.
You are right, there isn't a per/db-user combination setting. I think
one is done before the other, so you could try to set things that way,
maybe in a plpgsql procedure. I think you could do SELECT
db_user_set(); and have that function do that sets for you.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-10-26 20:11:46 | Re: UnixWare 7.1.3: with current CVS, and cc -Xb.,.. |
Previous Message | Alvaro Herrera | 2002-10-26 20:05:37 | Re: Request for supported platforms |