云数据库 GAUSSDB-文本检索调试函数:ts_stat(sqlquery text, [ weights text, ] OUT word text, OUT ndoc integer, OUT nentry integer)

时间:2025-06-03 09:35:44

ts_stat(sqlquery text, [ weights text, ] OUT word text, OUT ndoc integer, OUT nentry integer)

描述:获取tsvector列的统计数据。

返回类型:setof record

示例:

1
2
3
4
5
6
gaussdb=# SELECT ts_stat('select ''hello world''::tsvector');
   ts_stat   
-------------
 (world,1,1)
 (hello,1,1)
(2 rows)
support.huaweicloud.com/centralized-devg-v8-gaussdb/gaussdb-42-2030.html
推荐文章