Hi, Hummer!
Do you mean the GaussDB?
There is a case that may help you.
[Problem description]
How to restrict the maximum number of database connections.
[Problem analysis]
Excute a command for database.
[Root cause]
Login issue.
[Solution description]
Update tbl_smu_user_info set MAX_SESS_CNT=10 where LOGIN_NAME='Admin'