# 删除库的活动连接SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'olive_development' AND pid <> pg_backend_pid();# 拷备库CREATE DATABASE olive_test_1 WITH TEMPLATE olive_development OWNER ysllyfe;