반응형

 

- pg_hba.conf에 추가된 IP만 DB접속 허용됨

- 발생에러 : “FATAL: no pg_hba.conf entry” 

 -> pg_hba.conf에  없는 IP 정보는  위 에러처럼 접속 허용하지 않음

 

ㅁ 조치 ( DB접속 허용할 IP 추가)

## 1. hba conf 수정 

cd /var/lib/pgsql/9.6/data/
vi pg_hba.conf

# IPv4 local connections:
host    all         all         127.0.0.1/32          md5
host    all  	    all  	xxx.xxx.xxx.xxx       md5
# IPv6 local connections:
host    all         all         11.22.33.44/32 trust     ### < IP 추가> 


## 2. 적용  (DB restart 되지 않음. online작업) 
pg_ctl reload 
pg_ctl reload -D <data-file-path>
반응형

'DB > postgres' 카테고리의 다른 글

postgresql table size,tablespace size 계산  (0) 2022.12.27
[pgadmin] Crypt key is missing  (0) 2022.12.17
반응형
### example
select pg_size_pretty(pg_relation_size('테이블명'));
select pg_size_pretty(pg_rtablespace_size('테이블명'));


## users 테이블 사이즈
select pg_size_pretty(pg_relation_size('users'));



## 테이블스페이스 사이즈
select pg_size_pretty(pg_tablespace_size('TEST'));

 

반응형

'DB > postgres' 카테고리의 다른 글

pg_hba.conf 추가  (0) 2023.01.03
[pgadmin] Crypt key is missing  (0) 2022.12.17
반응형

connection 설정시 에러

 

- 에러 : Crypt key is missing

(출처 : Master Password — pgAdmin 4 6.18 documentation)

- 원인 : Master password를 설정하지 않아서 발생.

- 조치 :

1) 모든 세션종료, pgadmin 종료 후 재시작 

2) set master password 설정창에  패스워드 입력후 조치 

반응형

'DB > postgres' 카테고리의 다른 글

pg_hba.conf 추가  (0) 2023.01.03
postgresql table size,tablespace size 계산  (0) 2022.12.27

+ Recent posts