서비스 실행 시, 아래와 같은 로그가 찍힌다면 protgres의 인코딩은 변경해야 함

Caused by: java.lang.IllegalStateException:
org.postgresql.util.PSQLException:
ERROR: character with byte sequence 0xed 0x94 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252"

해결 방법

  1. CMD를 관리자 권한으로 실행

  2. 런처 설치 경로의 pgsql로 이동(..\STATIC Launcher LITE\builtin\pgsql\bin)

  3. postgres 실행

    $ psql.exe -U postgres -p 18001
    
  4. encoding 확인 → UTF8이 아닐 경우 문제가 될 수 있음

    postgres # show server_encoding;
    postgres # show client_encoding;
    
  5. UTF8이 아닐 경우, UTF8로 변경

    postgres # set server_encoding='UTF8';
    postgres # set client_encoding='UTF8';
    
  6. CMD창 종료

  7. ..\STATIC Launcher LITE\builtin\pgsql 경로에 있는 stop_server.bat 를 오른쪽 클릭하여 관리자 권한으로 실행

  8. Windows 서비스에서 STATIC Launcher 중지후 , 시작

인코딩 이슈로 특정 서비스가 dead 되는 경우(rule)

  1. 런처 쉘에서 > stop rule
  2. 관리자 권한으로 cmd 열기
  3. STATIC Launcher LITE 설치 경로\builtin\pgsql\bin 으로 이동