Index: base.py
===================================================================
--- base.py	(revision 5526)
+++ base.py	(working copy)
@@ -87,6 +87,9 @@
         return name # Quoting once is enough.
     return '"%s"' % name
 
+def unquote_name(name):
+    return name.strip('"')
+
 dictfetchone = util.dictfetchone
 dictfetchmany = util.dictfetchmany
 dictfetchall = util.dictfetchall
@@ -121,7 +124,8 @@
     return " DEFERRABLE INITIALLY DEFERRED"
 
 def get_fulltext_search_sql(field_name):
-    raise NotImplementedError
+    requoted_field_name = quote_name("%s_tsv" %(unquote_name(field_name)))
+    return "%s @@ to_tsquery(%%s)" % requoted_field_name
 
 def get_drop_foreignkey_sql():
     return "DROP CONSTRAINT"
