Fix Bad SQL coding practices in "Computed Columns" example (#51)

This commit is contained in:
Dan Kamenov
2017-03-29 21:51:39 -05:00
committed by Joe Nelson
parent 27bcd8074f
commit 1cab8cf82d
+1 -1
View File
@@ -111,7 +111,7 @@ Filters may be applied to computed columns as well as actual table/view columns,
-- (optional) add an index to speed up anticipated query
CREATE INDEX people_full_name_idx ON people
USING GIN (to_tsvector('english', fname || ' ' || lname));
USING GIN (to_tsvector('english', full_name(people)));
A full-text search on the computed column: