Postgres With Jieba

拷贝从Gist那边过来的代码 # Azurewind's PostgreSQL image with Chinese full text searchi using pg_jieba # FROM postgres:15-alpine FROM postgres:16-alpine ENV LANG zh_CN.utf8 RUN apk add --no-cache --virtual .build \ postgresql-dev \ gcc \ make \ llvm15 \ libc-dev \ g++ \ clang15 \ git \ cmake \ curl \ openssl-dev && \ git clone https://github.com/jaiminpan/pg_jieba && \ cd /pg_jieba && \ git submodule update --init --recursive && \ mkdir -p build && \ cd build && \ curl -L https://raw....

2023/10/25 Oct · 1 min · 153 words · SCys

Postgres Locale Change in Docker

调整PG的本地语言,因为建立数据全文搜索可以用到, create new Dockerfile as blew codes: FROM postgres:15-bullseye RUN localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8 ENV LANG zh_CN.utf8 support docker images list: postgres:15-bullseye postgres:14-bullseye postgres:13-bullseye

2023/05/22 May · 1 min · 29 words · SCys