PostgreSql encoding setting

jipyo park·2022년 5월 21일

postgresql

목록 보기
1/2
-- server 인코딩 확인
show server_encoding;
-- client 인코딩 확인
show client_encoding;
-- server 인코딩 설정
SET server_encoding TO 'value';
-- client 인코딩 설정
SET client_encoding TO 'value';

value에 인코딩 변환 문자열을 적어주면 됨
ex) utf8로 변환하고 싶으면 SET ~ TO 'utf8';를 적으면 됨

참고
https://www.postgresql.org/docs/14/multibyte.html
버전별로 조금씩은 다르니 버전을 확인하고 세팅하는 것을 추천함

1개의 댓글

comment-user-thumbnail
2025년 3월 24일

The tutorial on setting up PostgreSQL encryption and inserting Sprunki Retake is really detailed and easy to understand. The steps are clearly presented, making it easy for readers to follow and implement. Furthermore, integrating Sprunki Retake into the process further increases the applicability and efficiency of the system. This will definitely be a valuable resource for those who want to enhance the security of their databases.

답글 달기