Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
@@我有一个简单的问题:在 PostgreSQL 中进行查询时,是否可以通过 text[] 类型的列进行搜索?
@@
例如,类似于
to_tsvector(text[]) @@ plainto_tsquery('search this text')
不,但作为一种解决方法,您可以创建一个文本列,它是 text[] 元素的连接字符串,并在 text[] 列执行时更新。