exec_simple_query(const char *query_string)
{
parsetree_list = pg_parse_query(query_string);
foreach(parsetree_item, parsetree_list) {
querytree_list = pg_analyze_and_rewrite(parsetree,...);
plantree_list = pg_plan_queries(querytree_list,...);
portal = CreatePortal(...plantree_list...);
PortalRun(portal,...);
}
}
|