Skip to content

Commit

Permalink
Fix Bad SQL coding practices in "Computed Columns" example (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1983 authored and begriffs committed Mar 30, 2017
1 parent 27bcd80 commit 1cab8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 1cab8cf

Please sign in to comment.