Skip to content

Instantly share code, notes, and snippets.

@ruckus
Created April 24, 2012 21:19
Show Gist options
  • Select an option

  • Save ruckus/2483903 to your computer and use it in GitHub Desktop.

Select an option

Save ruckus/2483903 to your computer and use it in GitHub Desktop.
CREATE TRIGGER contacts_search_content_trigger BEFORE INSERT OR UPDATE
ON contacts FOR EACH ROW EXECUTE PROCEDURE
tsvector_update_trigger(search_content, 'pg_catalog.english', title, name, phone, fax, email, mobile_phone);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment