| От | Petr Jelínek |
|---|---|
| Тема | Re: limiting connections per user/database |
| Дата | |
| Msg-id | 42BFE6E1.2070708@parba.cz обсуждение |
| Ответ на | Re: limiting connections per user/database (Petr Jelínek <pjmodos@parba.cz>) |
| Список | pgsql-patches |
So now I have it all working including brand new alter database (this would have to be doublechecked by somebody from core team) and using proc array to get number of backends per database and per user. My only concer now is that userid in PGPROC, does anybody have anything against it ? And one more thing about userid, at the time MyProc is inserted to proc array we don't know userid, so I am now updating MyProc as soon as I know it (check for connection limit is done afterwards). There is another solution I know of - I could use flatfiles to get userid before MyProc is stored in proc array (which is how we get MyDatabaseId anyway). What of those solutions is better in your opinion ? Oh and atm those limits are not enforced for superusers, any objections ? -- Regards Petr Jelinek (PJMODOS) www.parba.cz
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера