feat: apply to_tsvector() explicitly to the full-text search filtered column, only if it's not of tsvector type

This commit is contained in:
Laurence Isla
2025-01-28 19:14:54 -05:00
parent e7cc8fedc0
commit b7d0a1f68c
12 changed files with 422 additions and 126 deletions
+13
View File
@@ -3799,3 +3799,16 @@ create table surr_gen_default_upsert (
name text,
extra text
);
create table tsearch_to_tsvector (
text_search text,
jsonb_search jsonb
);
create function test.get_tsearch_to_tsvector() returns setof test.tsearch_to_tsvector AS $$
select * from test.tsearch_to_tsvector;
$$ language sql;
create function test.text_search_vector(test.tsearch_to_tsvector) returns tsvector AS $$
select to_tsvector('simple', $1.text_search)
$$ language sql;