我有两个 varchars 字段,我想获得一个单词数组,它们存在于其中一个中,而不存在于另一个中,即:
old_text := to_tsvector("The quick brown fox jumps over the lazy dog")
new_text := to_tsvector("The slow brown fox jumps over the quick dog at Friday")
-> new words: ARRAY["slow", "at", "Friday"] ( the order of words doesn't matter )
我试着摆弄 ts_vectors,但没有运气.. postgres 中的任何其他功能支持这样的东西吗?