You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is more level by database id. so we need to change code from zhparser.c
/**
* %s datadir is the data directory of the current database
* %s get_database_name(MyDatabaseId) is the name of the current database
* add mydatabaseId to path
*/
snprintf(dict_path, MAXPGPATH, "%s/base/%d/zhprs_dict_%s.txt",
DataDir, MyDatabaseId, get_database_name(MyDatabaseId));
and then, there is no error after execute the SQL.
[postgres@localhost bin]$ ./psql
psql (15.2)
Type "help" for help.
postgres=# \c test_zhpr;
You are now connected to database "test_zhpr" as user "postgres".
test_zhpr=# create extension zhparser;
CREATE EXTENSION
test_zhpr=# SELECT * FROM ts_parse('zhparser', '保障房资金压力');
tokid | token
-------+-------
118 | 保障
110 | 房
110 | 资金
110 | 压力
(4 rows)
The text was updated successfully, but these errors were encountered:
There is a error print after execute SQL.
postgreSQL 15.2 and other versions base directory path changed!
there is more level by database id. so we need to change code from zhparser.c
and then, there is no error after execute the SQL.
The text was updated successfully, but these errors were encountered: