|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Typedefs | |
| typedef char *(* | pg_plan_advice_advisor_hook) (PlannerGlobal *glob, Query *parse, const char *query_string, int cursorOptions, ExplainState *es) |
Functions | |
| MemoryContext | pg_plan_advice_get_mcxt (void) |
| bool | pg_plan_advice_should_explain (ExplainState *es) |
| char * | pg_plan_advice_get_supplied_query_advice (PlannerGlobal *glob, Query *parse, const char *query_string, int cursorOptions, ExplainState *es) |
| PGDLLEXPORT void | pg_plan_advice_add_advisor (pg_plan_advice_advisor_hook hook) |
| PGDLLEXPORT void | pg_plan_advice_remove_advisor (pg_plan_advice_advisor_hook hook) |
| PGDLLEXPORT void | pg_plan_advice_request_advice_generation (bool activate) |
Variables | |
| char * | pg_plan_advice_advice |
| bool | pg_plan_advice_always_store_advice_details |
| bool | pg_plan_advice_feedback_warnings |
| bool | pg_plan_advice_trace_mask |
| typedef char *(* pg_plan_advice_advisor_hook) (PlannerGlobal *glob, Query *parse, const char *query_string, int cursorOptions, ExplainState *es) |
Definition at line 19 of file pg_plan_advice.h.
|
extern |
Definition at line 204 of file pg_plan_advice.c.
References advisor_hook_list, lappend(), MemoryContextSwitchTo(), and pg_plan_advice_get_mcxt().
|
extern |
Definition at line 142 of file pg_plan_advice.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, fb(), pgpa_memory_context, and TopMemoryContext.
Referenced by pg_plan_advice_add_advisor(), and pg_plan_advice_remove_advisor().
|
extern |
Definition at line 169 of file pg_plan_advice.c.
References advisor_hook_list, fb(), lfirst, parse(), and pg_plan_advice_advice.
Referenced by pgpa_planner_setup().
|
extern |
Definition at line 217 of file pg_plan_advice.c.
References advisor_hook_list, list_delete_ptr(), MemoryContextSwitchTo(), and pg_plan_advice_get_mcxt().
|
extern |
Definition at line 241 of file pg_plan_advice.c.
References Assert, fb(), and pgpa_planner_generate_advice.
|
extern |
Definition at line 156 of file pg_plan_advice.c.
References es_extension_id, fb(), and GetExplainExtensionState().
Referenced by pg_plan_advice_explain_per_plan_hook(), and pgpa_planner_setup().
|
extern |
Definition at line 34 of file pg_plan_advice.c.
Referenced by _PG_init(), and pg_plan_advice_get_supplied_query_advice().
|
extern |
Definition at line 35 of file pg_plan_advice.c.
Referenced by _PG_init(), and pgpa_planner_setup().
|
extern |
Definition at line 37 of file pg_plan_advice.c.
Referenced by _PG_init(), pgpa_planner_setup(), and pgpa_planner_shutdown().
|
extern |
Definition at line 38 of file pg_plan_advice.c.
Referenced by _PG_init(), pgpa_build_simple_rel(), pgpa_join_path_setup(), and pgpa_joinrel_setup().