|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "optimizer/extendplan.h"#include "port/pg_bitutils.h"#include "utils/memutils.h"
Go to the source code of this file.
Functions | |
| int | GetPlannerExtensionId (const char *extension_name) |
| void | SetPlannerGlobalExtensionState (PlannerGlobal *glob, int extension_id, void *opaque) |
| void | SetPlannerInfoExtensionState (PlannerInfo *root, int extension_id, void *opaque) |
| void | SetRelOptInfoExtensionState (RelOptInfo *rel, int extension_id, void *opaque) |
Variables | |
| static const char ** | PlannerExtensionNameArray = NULL |
| static int | PlannerExtensionNamesAssigned = 0 |
| static int | PlannerExtensionNamesAllocated = 0 |
| int GetPlannerExtensionId | ( | const char * | extension_name | ) |
Definition at line 41 of file extendplan.c.
References i, MemoryContextAlloc(), pg_nextpower2_32(), PlannerExtensionNameArray, PlannerExtensionNamesAllocated, PlannerExtensionNamesAssigned, repalloc(), and TopMemoryContext.
Referenced by geqo().
| void SetPlannerGlobalExtensionState | ( | PlannerGlobal * | glob, |
| int | extension_id, | ||
| void * | opaque | ||
| ) |
Definition at line 77 of file extendplan.c.
References Assert(), PlannerGlobal::extension_state_allocated, GetMemoryChunkContext(), i, Max, MemoryContextAllocZero(), pg_nextpower2_32(), and repalloc0().
| void SetPlannerInfoExtensionState | ( | PlannerInfo * | root, |
| int | extension_id, | ||
| void * | opaque | ||
| ) |
Definition at line 115 of file extendplan.c.
References Assert(), i, Max, MemoryContextAllocZero(), pg_nextpower2_32(), repalloc0(), and root.
Referenced by geqo().
| void SetRelOptInfoExtensionState | ( | RelOptInfo * | rel, |
| int | extension_id, | ||
| void * | opaque | ||
| ) |
Definition at line 151 of file extendplan.c.
References Assert(), RelOptInfo::extension_state_allocated, GetMemoryChunkContext(), i, Max, MemoryContextAllocZero(), pg_nextpower2_32(), and repalloc0().
|
static |
Definition at line 28 of file extendplan.c.
Referenced by GetPlannerExtensionId().
|
static |
Definition at line 30 of file extendplan.c.
Referenced by GetPlannerExtensionId().
|
static |
Definition at line 29 of file extendplan.c.
Referenced by GetPlannerExtensionId().