Re: limiting connections per user/database

From: Petr Jelínek <pjmodos(at)parba(dot)cz>
To: Alvaro Herrera <alvherre(at)surnet(dot)cl>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: limiting connections per user/database
Date: 2005-06-27 03:51:02
Message-ID: 42BF77A6.1090707@parba.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Alvaro Herrera wrote:

>Prepared transactions can be filtered out by checking the pid struct
>member. I'm not sure if anybody would object to adding the
>authenticated user Id to ProcArray, but I don't see why not.
>
>
Very well, it seems to work this way (although the code for storing
userid in PGPROC isn't as clean as I hoped).

The problem now is that I am storing those limits in system catalog but
there is no ALTER DATABASE implementation which I could use to change
this - there are only RENAME, OWNER and SET implementations and those
are not usable for "normal" properties (SET is for guc variables only
which was the actual reason for me to use guc variables first time).
That said I think that I will have to implement some ALTER DATABASE
command for those purposes and I am not sure if I can handle it because
I am not familiar with bison (I have even problems to add new ALTER USER
property to existing implementation).

--
Regards
Petr Jelinek (PJMODOS)

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2005-06-27 04:08:15 Re: [SQL] ARRAY() returning NULL instead of ARRAY[]
Previous Message Bruce Momjian 2005-06-27 03:35:42 Re: COPY FROM performance improvements