1. 创建数据库 create database test with template template0 lc_collate "zh_CN.UTF-8" lc_ctype "zh_CN.UTF-8" encoding 'UTF8'; 2. 添加插件 create extension pg_trgm; 3. 查看效果 select show_trgm('你好'); 查询结果为空,我需要如何设置才能使trgm插件对中文生效。展开 柳叶清 2019-10-...
-bash-4.1$ find html -name *.html -exec cat {} \;|iconv -f GBK -t UTF8|sed 's\[\]\\g'|psql -p 5433 testdb -c "copy t1(c1) from stdin" 注)翻译中的PostgreSQL9.3中文手册(pg9.3.1.html.tar.gz)可从以下位置下载:http://58.58.27.50:8079/doc/doc/postdoc_download.php 查看数据...