From 1cab8cf82d292663d4468b83778782e38b42c648 Mon Sep 17 00:00:00 2001 From: Dan Kamenov Date: Wed, 29 Mar 2017 20:48:36 -0600 Subject: [PATCH] Fix Bad SQL coding practices in "Computed Columns" example (#51) --- api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.rst b/api.rst index 56c97991b..c66ac8060 100644 --- a/api.rst +++ b/api.rst @@ -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: