aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 98b56d6582c..39b7b5b678e 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -514,47 +514,6 @@ client_read_ended(void)
/*
- * Parse a query string and pass it through the rewriter.
- *
- * A list of Query nodes is returned, since the string might contain
- * multiple queries and/or the rewriter might expand one query to several.
- *
- * NOTE: this routine is no longer used for processing interactive queries,
- * but it is still needed for parsing of SQL function bodies.
- */
-List *
-pg_parse_and_rewrite(const char *query_string, /* string to execute */
- Oid *paramTypes, /* parameter types */
- int numParams) /* number of parameters */
-{
- List *raw_parsetree_list;
- List *querytree_list;
- ListCell *list_item;
-
- /*
- * (1) parse the request string into a list of raw parse trees.
- */
- raw_parsetree_list = pg_parse_query(query_string);
-
- /*
- * (2) Do parse analysis and rule rewrite.
- */
- querytree_list = NIL;
- foreach(list_item, raw_parsetree_list)
- {
- Node *parsetree = (Node *) lfirst(list_item);
-
- querytree_list = list_concat(querytree_list,
- pg_analyze_and_rewrite(parsetree,
- query_string,
- paramTypes,
- numParams));
- }
-
- return querytree_list;
-}
-
-/*
* Do raw parsing (only).
*
* A list of parsetrees is returned, since there might be multiple