PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | ParamExternData |
struct | ParamListInfoData |
struct | ParamExecData |
struct | ParamsErrorCbData |
Macros | |
#define | PARAM_FLAG_CONST 0x0001 /* parameter is constant */ |
Typedefs | |
typedef struct ParamExternData | ParamExternData |
typedef struct ParamListInfoData * | ParamListInfo |
typedef ParamExternData *(* | ParamFetchHook) (ParamListInfo params, int paramid, bool speculative, ParamExternData *workspace) |
typedef void(* | ParamCompileHook) (ParamListInfo params, struct Param *param, struct ExprState *state, Datum *resv, bool *resnull) |
typedef void(* | ParserSetupHook) (struct ParseState *pstate, void *arg) |
typedef struct ParamListInfoData | ParamListInfoData |
typedef struct ParamExecData | ParamExecData |
typedef struct ParamsErrorCbData | ParamsErrorCbData |
Functions | |
ParamListInfo | makeParamList (int numParams) |
ParamListInfo | copyParamList (ParamListInfo from) |
Size | EstimateParamListSpace (ParamListInfo paramLI) |
void | SerializeParamList (ParamListInfo paramLI, char **start_address) |
ParamListInfo | RestoreParamList (char **start_address) |
char * | BuildParamLogString (ParamListInfo params, char **knownTextValues, int maxlen) |
void | ParamsErrorCallback (void *arg) |
typedef void(* ParamCompileHook) (ParamListInfo params, struct Param *param, struct ExprState *state, Datum *resv, bool *resnull) |
typedef struct ParamExecData ParamExecData |
typedef struct ParamExternData ParamExternData |
typedef ParamExternData*(* ParamFetchHook) (ParamListInfo params, int paramid, bool speculative, ParamExternData *workspace) |
typedef struct ParamListInfoData* ParamListInfo |
typedef struct ParamListInfoData ParamListInfoData |
typedef struct ParamsErrorCbData ParamsErrorCbData |
typedef void(* ParserSetupHook) (struct ParseState *pstate, void *arg) |
char* BuildParamLogString | ( | ParamListInfo | params, |
char ** | knownTextValues, | ||
int | maxlen | ||
) |
Definition at line 335 of file params.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, appendStringInfo(), appendStringInfoString(), appendStringInfoStringQuoted(), buf, CurrentMemoryContext, getTypeOutputInfo(), initStringInfo(), IsAbortedTransactionBlockState(), ParamExternData::isnull, MemoryContextDelete(), MemoryContextSwitchTo(), ParamListInfoData::numParams, OidIsValid, OidOutputFunctionCall(), ParamListInfoData::paramFetch, ParamListInfoData::params, ParamExternData::ptype, and ParamExternData::value.
Referenced by errdetail_params(), exec_bind_message(), and ExplainQueryParameters().
ParamListInfo copyParamList | ( | ParamListInfo | from | ) |
Definition at line 78 of file params.c.
References datumCopy(), get_typlenbyval(), i, ParamExternData::isnull, makeParamList(), ParamListInfoData::numParams, OidIsValid, ParamListInfoData::paramFetch, ParamListInfoData::params, ParamExternData::ptype, and ParamExternData::value.
Referenced by PerformCursorOpen(), and SPI_cursor_open_internal().
Size EstimateParamListSpace | ( | ParamListInfo | paramLI | ) |
Definition at line 167 of file params.c.
References add_size(), datumEstimateSpace(), get_typlenbyval(), i, ParamExternData::isnull, ParamListInfoData::numParams, OidIsValid, ParamListInfoData::paramFetch, ParamListInfoData::params, ParamExternData::ptype, and ParamExternData::value.
Referenced by ExecInitParallelPlan().
ParamListInfo makeParamList | ( | int | numParams | ) |
Definition at line 44 of file params.c.
References ParamListInfoData::numParams, palloc(), ParamListInfoData::paramCompile, ParamListInfoData::paramCompileArg, ParamListInfoData::paramFetch, ParamListInfoData::paramFetchArg, paramlist_parser_setup(), ParamListInfoData::paramValuesStr, ParamListInfoData::parserSetup, ParamListInfoData::parserSetupArg, and size.
Referenced by _SPI_convert_params(), copyParamList(), EvaluateParams(), exec_bind_message(), exec_eval_using_params(), plpgsql_estate_setup(), postquel_sub_params(), and RestoreParamList().
void ParamsErrorCallback | ( | void * | arg | ) |
Definition at line 407 of file params.c.
References arg, data, and errcontext.
Referenced by exec_bind_message(), and exec_execute_message().
ParamListInfo RestoreParamList | ( | char ** | start_address | ) |
Definition at line 292 of file params.c.
References datumRestore(), i, ParamExternData::isnull, makeParamList(), ParamListInfoData::params, ParamExternData::pflags, ParamExternData::ptype, and ParamExternData::value.
Referenced by ExecParallelGetQueryDesc().
void SerializeParamList | ( | ParamListInfo | paramLI, |
char ** | start_address | ||
) |
Definition at line 229 of file params.c.
References datumSerialize(), get_typlenbyval(), i, ParamExternData::isnull, ParamListInfoData::numParams, OidIsValid, ParamListInfoData::paramFetch, ParamListInfoData::params, ParamExternData::pflags, ParamExternData::ptype, and ParamExternData::value.
Referenced by ExecInitParallelPlan().