Postgres 명령어 모음
Postgres 명령어 모음
postgres 명령어
postgres 재시작
1
sudo sudo systemctl restart postgresql
테이블 이름 바꾸기
```sql title:”change table name” ALTER TABLE table_name RENAME TO new_table_name;
1
2
3
4
5
## 인덱스 조회
```sql title:"select index"
SELECT * FROM pg_indexes WHERE tablename = 'table_name';
이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.