JuBin's personal study blog

[PostgreSQL] Drop Database시 오류 본문

DataBase

[PostgreSQL] Drop Database시 오류

JuBin 2021. 2. 2. 17:20
반응형

# database drop시 


ERROR:  database "pilot" is being accessed by other users
DETAIL:  There is 1 other session using the database.

 

 


REVOKE CONNECT ON DATABASE pilot FROM public;
   >> pilot 접근 제한 걸어놓고
   >> sudo systemctl restart postgresql 뽀그리 재시작

반응형

'DataBase' 카테고리의 다른 글

[DataBase] 트랜잭션의 특성(ACID)  (1) 2023.05.21
[DataBase] 파티셔닝과 샤딩  (1) 2023.05.21
[PostgreSQL] psql 명령어 정리  (1) 2021.01.12
[PostgreSQL] pg_dumpall 전체백업하기  (0) 2021.01.12
PostgreSQL Log 설정하기  (0) 2021.01.11