tsvector_to_array() 是一个系统函数,用于将 tsvector 转换为词条数组。
tsvector_to_array() 在 PostgreSQL 9.6 中被添加。
示例
tsvector_to_array() 的基本用法示例
postgres=# SELECT tsvector_to_array(to_tsvector('foo a bar is bar bar is foo boo'));
tsvector_to_array
-------------------
{bar,boo,foo}
(1 row)
参考资料
- PostgreSQL 文档: 文本搜索函数
