Skip to main content
deleted 26 characters in body
Source Link
Laurenz Albe
  • 257k
  • 22
  • 312
  • 388

That would be a simple join between the tables:

SELECT t2.* FROM t1 JOIN t2 ON to_tsvector(t2.tags) @@= to_tsquery(t1.word);word; 

No need for full text search!

That would be a simple join between the tables:

SELECT t2.* FROM t1 JOIN t2 ON to_tsvector(t2.tags) @@ to_tsquery(t1.word); 

That would be a simple join between the tables:

SELECT t2.* FROM t1 JOIN t2 ON t2.tags = t1.word; 

No need for full text search!

Source Link
Laurenz Albe
  • 257k
  • 22
  • 312
  • 388

That would be a simple join between the tables:

SELECT t2.* FROM t1 JOIN t2 ON to_tsvector(t2.tags) @@ to_tsquery(t1.word);