Обсуждение: Connection limit per user

Поиск
Список
Период
Сортировка

Connection limit per user

От
"Lukas"
Дата:
Hello,

 is here any way to set connection limit to database per database user?
 For ex. if I have postgresql database user XXX I want limit it to 2
connections per database (or per all databases)..


--
Lukas
UAB nSoft
http://www.nsoft.lt
Lukas at nsoft.lt
+370 655 10 655



--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.


Re: Connection limit per user

От
Vibhor Kumar
Дата:
Hello Lukas,

You would be able to achieve it using the alter user command as given below:
alter user <user name> with CONNECTION LIMIT 2;


Lukas wrote:
> Hello,
>
>  is here any way to set connection limit to database per database user?
>  For ex. if I have postgresql database user XXX I want limit it to 2
> connections per database (or per all databases)..
>
>
> --
> Lukas
> UAB nSoft
> http://www.nsoft.lt
> Lukas at nsoft.lt
> +370 655 10 655
>
>
>
>


logging a single user session

От
Kasia Tuszynska
Дата:
Hi Everybody,
I am convinced that this question has been posted on either the novice or admin forum but I can not find the answer -
sosorry for the repeat. 

I would like to log (or trace) the output from a single user session, what parameters in the postgresql.conf do I set
towhat to achieve that?  

Thank a lot in advance,
Sincerely,
Kasia

Re: logging a single user session

От
Scott Marlowe
Дата:
On Tue, Mar 24, 2009 at 11:43 AM, Kasia Tuszynska <ktuszynska@esri.com> wrote:
> Hi Everybody,
> I am convinced that this question has been posted on either the novice or admin forum but I can not find the answer -
sosorry for the repeat. 
>
> I would like to log (or trace) the output from a single user session, what parameters in the postgresql.conf do I set
towhat to achieve that? 

I think you can do it from a psql prompt:

alter user smarlowe set log_statement='ddl';

where you could replace ddl with none, ddl, mod, all if I remember correctly.