tp: bunch of cleanups for table functions

* fix the document generator to look for the right thing and remove all
  references to view functions
* remove reference to create_*_function from the documentation in favor
  of the PerfettoSQL documentation
* change all metrics to use create or replace when building table
  functions to work around issues when metrics are run twice.

Change-Id: I76f17630450ccdd80e27d019d4d8ae141fb360c9
diff --git a/python/generators/sql_processing/docs_extractor.py b/python/generators/sql_processing/docs_extractor.py
index 52fbd66..c42774e 100644
--- a/python/generators/sql_processing/docs_extractor.py
+++ b/python/generators/sql_processing/docs_extractor.py
@@ -55,7 +55,7 @@
     extracted = []
     extracted += self._extract_for_kind(ObjKind.table_view)
     extracted += self._extract_for_kind(ObjKind.function)
-    extracted += self._extract_for_kind(ObjKind.view_function)
+    extracted += self._extract_for_kind(ObjKind.table_function)
     return extracted
 
   def _extract_for_kind(self, kind: ObjKind) -> List[Extract]: