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....

<span title='2023-10-25 09:42:31 +0000 UTC'>2023/10/25 Oct</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;153 words&nbsp;·&nbsp;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

<span title='2023-05-22 15:42:31 +0000 UTC'>2023/05/22 May</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;29 words&nbsp;·&nbsp;SCys