amutu / zhparser

zhparser is a PostgreSQL extension for full-text search of Chinese language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

插件无法和checksum一起用: ERROR: invalid segment number 0 in file "zhparser_dict_template1.tag"

junfx opened this issue · comments

commented

initdb -k启用checksum后, pg_checksum.c里面有逻辑检查datadir/base中文件名; zhparser会把.tag, .txt文件放在datadir/base中;
pg_basebackup可以触发(重现)这个问题:

initdb -k -D primary # 端口5432
pg_basebackup -h localhost -p 5432 -D standby_dir

是的,目前会这样,你必须要用checksum么? 如果要用的话,我可以发布个版本,处理下