When am trying to drop database getting this "DETAIL: There are 5 other sessions using the database."
So should drop database without stopping either postgres server or odoo server
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
When am trying to drop database getting this "DETAIL: There are 5 other sessions using the database."
So should drop database without stopping either postgres server or odoo server
If you need to do it in psql or using a postgresql client you could issue this query to stop those sessions:
SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'db_name' AND pid != pg_backend_pid();
Change db_name for your target database to drop
But Odoo itself do this if you drop the database through Odoo database manager ui accesible at:
http://localhost:8069/web/database/manager#action=database_manager
In the menu drop, select the target database to drop, type the instance admin password and clic drop button or press enter.
Change localhost:8069 in the previous url to match your Odoo instance url
If works for you then you need to vote and accept the answer
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
0
февр. 21
|
2476 | |||
|
0
сент. 18
|
4059 | |||
|
1
нояб. 16
|
10071 | |||
|
0
нояб. 25
|
3341 | |||
|
2
авг. 25
|
3912 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Thank you Axel.