Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
5785 Tampilan

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

Avatar
Buang

Thank you Axel.

Jawaban Terbai

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

Avatar
Buang

If works for you then you need to vote and accept the answer

Post Terkait Replies Tampilan Aktivitas
0
Feb 21
1872
0
Sep 18
3457
1
Nov 16
9148
2
Agu 25
2613
1
Jul 25
1015