PostgreSQL Source Code
git master
|
#include "nodes/parsenodes.h"
Go to the source code of this file.
Data Structures | |
struct | LocationLen |
struct | JumbleState |
Typedefs | |
typedef struct LocationLen | LocationLen |
typedef struct JumbleState | JumbleState |
Enumerations | |
enum | ComputeQueryIdType { COMPUTE_QUERY_ID_OFF , COMPUTE_QUERY_ID_ON , COMPUTE_QUERY_ID_AUTO , COMPUTE_QUERY_ID_REGRESS } |
Functions | |
const char * | CleanQuerytext (const char *query, int *location, int *len) |
JumbleState * | JumbleQuery (Query *query) |
void | EnableQueryId (void) |
static bool | IsQueryIdEnabled (void) |
Variables | |
PGDLLIMPORT int | compute_query_id |
PGDLLIMPORT bool | query_id_enabled |
typedef struct JumbleState JumbleState |
typedef struct LocationLen LocationLen |
enum ComputeQueryIdType |
Enumerator | |
---|---|
COMPUTE_QUERY_ID_OFF | |
COMPUTE_QUERY_ID_ON | |
COMPUTE_QUERY_ID_AUTO | |
COMPUTE_QUERY_ID_REGRESS |
Definition at line 54 of file queryjumble.h.
const char* CleanQuerytext | ( | const char * | query, |
int * | location, | ||
int * | len | ||
) |
Definition at line 67 of file queryjumblefuncs.c.
References Assert, len, and scanner_isspace().
Referenced by pgss_store(), and script_error_callback().
void EnableQueryId | ( | void | ) |
Definition at line 157 of file queryjumblefuncs.c.
References compute_query_id, COMPUTE_QUERY_ID_OFF, and query_id_enabled.
Referenced by _PG_init().
|
inlinestatic |
Definition at line 77 of file queryjumble.h.
References compute_query_id, COMPUTE_QUERY_ID_OFF, COMPUTE_QUERY_ID_ON, and query_id_enabled.
Referenced by ExecCreateTableAs(), ExplainOneUtility(), ExplainQuery(), JumbleQuery(), parse_analyze_fixedparams(), parse_analyze_varparams(), parse_analyze_withcb(), and PerformCursorOpen().
JumbleState* JumbleQuery | ( | Query * | query | ) |
Definition at line 112 of file queryjumblefuncs.c.
References _jumbleNode(), Assert, JumbleState::clocations, JumbleState::clocations_buf_size, JumbleState::clocations_count, DatumGetUInt64(), hash_any_extended(), JumbleState::highest_extern_param_id, IsQueryIdEnabled(), JumbleState::jumble, JumbleState::jumble_len, JUMBLE_SIZE, palloc(), and Query::utilityStmt.
Referenced by ExecCreateTableAs(), ExplainOneUtility(), ExplainQuery(), parse_analyze_fixedparams(), parse_analyze_varparams(), parse_analyze_withcb(), and PerformCursorOpen().
|
extern |
Definition at line 43 of file queryjumblefuncs.c.
Referenced by EnableQueryId(), ExplainPrintPlan(), and IsQueryIdEnabled().
|
extern |
Definition at line 52 of file queryjumblefuncs.c.
Referenced by EnableQueryId(), and IsQueryIdEnabled().