|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <ctype.h>#include <float.h>#include <limits.h>#include <math.h>#include <signal.h>#include <time.h>#include <sys/resource.h>#include <sys/select.h>#include "catalog/pg_class_d.h"#include "common/int.h"#include "common/logging.h"#include "common/pg_prng.h"#include "common/string.h"#include "common/username.h"#include "fe_utils/cancel.h"#include "fe_utils/conditional.h"#include "fe_utils/option_utils.h"#include "fe_utils/string_utils.h"#include "getopt_long.h"#include "libpq-fe.h"#include "pgbench.h"#include "port/pg_bitutils.h"#include "portability/instr_time.h"#include "port/pg_pthread.h"
Go to the source code of this file.
Data Structures | |
| struct | socket_set |
| struct | Variable |
| struct | Variables |
| struct | SimpleStats |
| struct | StatsData |
| struct | CState |
| struct | TState |
| struct | Command |
| struct | ParsedScript |
| struct | BuiltinScript |
Enumerations | |
| enum | partition_method_t { PART_NONE , PART_RANGE , PART_HASH } |
| enum | EStatus { ESTATUS_NO_ERROR = 0 , ESTATUS_META_COMMAND_ERROR , ESTATUS_CONN_ERROR , ESTATUS_SERIALIZATION_ERROR , ESTATUS_DEADLOCK_ERROR , ESTATUS_OTHER_SQL_ERROR } |
| enum | TStatus { TSTATUS_IDLE , TSTATUS_IN_BLOCK , TSTATUS_CONN_ERROR , TSTATUS_OTHER_ERROR } |
| enum | ConnectionStateEnum { CSTATE_CHOOSE_SCRIPT , CSTATE_START_TX , CSTATE_PREPARE_THROTTLE , CSTATE_THROTTLE , CSTATE_START_COMMAND , CSTATE_WAIT_RESULT , CSTATE_SLEEP , CSTATE_END_COMMAND , CSTATE_SKIP_COMMAND , CSTATE_ERROR , CSTATE_WAIT_ROLLBACK_RESULT , CSTATE_RETRY , CSTATE_FAILURE , CSTATE_END_TX , CSTATE_ABORTED , CSTATE_FINISHED } |
| enum | MetaCommand { META_NONE , META_SET , META_SETSHELL , META_SHELL , META_SLEEP , META_GSET , META_ASET , META_IF , META_ELIF , META_ELSE , META_ENDIF , META_STARTPIPELINE , META_SYNCPIPELINE , META_ENDPIPELINE } |
| enum | QueryMode { QUERY_SIMPLE , QUERY_EXTENDED , QUERY_PREPARED , NUM_QUERYMODE } |
| #define COMMANDS_ALLOC_NUM 128 |
| #define FNV_OFFSET_BASIS UINT64CONST(0xcbf29ce484222325) |
| #define FNV_PRIME UINT64CONST(0x100000001b3) |
| #define MM2_MUL UINT64CONST(0xc6a4a7935bd1e995) |
| #define MM2_MUL_TIMES_8 UINT64CONST(0x35253c9ade8f4ca8) |
| #define nbranches |
| #define PARAMS_ARRAY_SIZE 7 |
| #define THREAD_BARRIER_DESTROY | ( | barrier | ) | pthread_barrier_destroy((barrier)) |
| #define THREAD_BARRIER_INIT | ( | barrier, | |
| n | |||
| ) | pthread_barrier_init((barrier), NULL, (n)) |
| #define THREAD_BARRIER_T pthread_barrier_t |
| #define THREAD_BARRIER_WAIT | ( | barrier | ) | pthread_barrier_wait((barrier)) |
| #define THREAD_JOIN | ( | handle | ) | pthread_join((handle), NULL) |
| typedef void(* initRowMethod) (PQExpBufferData *sql, int64 curr) |
Definition at line 493 of file pgbench.c.
| Enumerator | |
|---|---|
| ESTATUS_NO_ERROR | |
| ESTATUS_META_COMMAND_ERROR | |
| ESTATUS_CONN_ERROR | |
| ESTATUS_SERIALIZATION_ERROR | |
| ESTATUS_DEADLOCK_ERROR | |
| ESTATUS_OTHER_SQL_ERROR | |
| Enumerator | |
|---|---|
| PART_NONE | |
| PART_RANGE | |
| PART_HASH | |
Definition at line 227 of file pgbench.c.
| Enumerator | |
|---|---|
| QUERY_SIMPLE | |
| QUERY_EXTENDED | |
| QUERY_PREPARED | |
| NUM_QUERYMODE | |
Definition at line 713 of file pgbench.c.
| Enumerator | |
|---|---|
| TSTATUS_IDLE | |
| TSTATUS_IN_BLOCK | |
| TSTATUS_CONN_ERROR | |
| TSTATUS_OTHER_ERROR | |
|
static |
Definition at line 1442 of file pgbench.c.
References addToSimpleStats(), StatsData::cnt, StatsData::deadlock_failures, ESTATUS_DEADLOCK_ERROR, ESTATUS_NO_ERROR, ESTATUS_OTHER_SQL_ERROR, ESTATUS_SERIALIZATION_ERROR, fb(), StatsData::lag, StatsData::latency, StatsData::other_sql_failures, pg_fatal, StatsData::retried, StatsData::retries, StatsData::serialization_failures, StatsData::skipped, and throttle_delay.
Referenced by doLog(), and processXactStats().
|
static |
Definition at line 8012 of file pgbench.c.
References fb(), fd(), pg_log_error, and pg_log_error_hint.
Referenced by threadRun().
|
static |
Definition at line 6291 of file pgbench.c.
References CheckConditional(), ParsedScript::commands, ParsedScript::desc, fb(), MAX_SCRIPTS, num_scripts, pg_fatal, and sql_script.
Referenced by ParseScript().
|
static |
Definition at line 1393 of file pgbench.c.
References SimpleStats::count, fb(), SimpleStats::max, SimpleStats::min, SimpleStats::sum, SimpleStats::sum2, and val.
Referenced by accumStats(), and advanceConnectionState().
Definition at line 3668 of file pgbench.c.
References addToSimpleStats(), Assert, canContinueOnError(), canRetryError(), chooseScript(), CState::cnt, CState::command, commandFailed(), ParsedScript::commands, CState::con, conditional_active(), conditional_stack_empty(), conditional_stack_peek(), conditional_stack_poke(), conditional_stack_pop(), conditional_stack_push(), conditional_stack_reset(), TState::conn_duration, CState::cs_func_rs, CState::cstack, CSTATE_ABORTED, CSTATE_CHOOSE_SCRIPT, CSTATE_END_COMMAND, CSTATE_END_TX, CSTATE_ERROR, CSTATE_FAILURE, CSTATE_FINISHED, CSTATE_PREPARE_THROTTLE, CSTATE_RETRY, CSTATE_SKIP_COMMAND, CSTATE_SLEEP, CSTATE_START_COMMAND, CSTATE_START_TX, CSTATE_THROTTLE, CSTATE_WAIT_RESULT, CSTATE_WAIT_ROLLBACK_RESULT, ParsedScript::desc, discardUntilSync(), doConnect(), doRetry(), duration, end_time, CState::estatus, ESTATUS_META_COMMAND_ERROR, ESTATUS_NO_ERROR, executeMetaCommand(), Command::failures, fb(), finishCon(), getPoissonRand(), getTransactionStatus(), CState::id, IFSTATE_ELSE_FALSE, IFSTATE_ELSE_TRUE, IFSTATE_FALSE, IFSTATE_IGNORED, IFSTATE_NONE, IFSTATE_TRUE, is_connect, latency_limit, Command::meta, META_ASET, META_COMMAND, META_ELIF, META_ELSE, META_ENDIF, META_GSET, META_IF, now(), nxacts, pg_free(), pg_log_debug, pg_log_error, PG_TIME_GET_DOUBLE, pg_time_now(), pg_time_now_lazy(), PGRES_COMMAND_OK, PQ_PIPELINE_OFF, PQ_PIPELINE_ON, PQclear, PQconsumeInput(), PQerrorMessage(), PQgetResult, PQisBusy(), PQpipelineStatus(), PQresultStatus, PQsendQuery(), CState::prepared, printVerboseErrorMessages(), processXactStats(), CState::random_state, readCommandResponse(), report_per_command, Command::retries, sendCommand(), SQL_COMMAND, sql_script, start, CState::state, Command::stats, CState::stmt_begin, throttle_delay, TState::throttle_trigger, timer_exceeded, CState::tries, TState::ts_throttle_rs, TSTATUS_CONN_ERROR, TSTATUS_IDLE, TSTATUS_IN_BLOCK, CState::txn_begin, CState::txn_scheduled, Command::type, CState::use_file, Command::varprefix, and verbose_errors.
Referenced by threadRun().
|
static |
Definition at line 7993 of file pgbench.c.
References pg_malloc0().
Referenced by threadRun().
Definition at line 3065 of file pgbench.c.
References Assert, ParsedScript::commands, fb(), i, num_scripts, pg_malloc(), pg_malloc0(), CState::prepared, and sql_script.
Referenced by prepareCommand(), and prepareCommandsInPipeline().
Definition at line 1930 of file pgbench.c.
References fb(), free, getVariable(), name, parseVariable(), replaceVariable(), and val.
Referenced by sendCommand().
Definition at line 3264 of file pgbench.c.
References continue_on_error, and ESTATUS_OTHER_SQL_ERROR.
Referenced by advanceConnectionState(), and readCommandResponse().
Definition at line 3253 of file pgbench.c.
References ESTATUS_DEADLOCK_ERROR, and ESTATUS_SERIALIZATION_ERROR.
Referenced by advanceConnectionState(), doRetry(), and readCommandResponse().
|
static |
Definition at line 5949 of file pgbench.c.
References conditional_stack_create(), conditional_stack_destroy(), conditional_stack_empty(), conditional_stack_peek(), conditional_stack_poke(), conditional_stack_pop(), conditional_stack_push(), ConditionError(), fb(), i, IFSTATE_ELSE_FALSE, IFSTATE_FALSE, Command::meta, META_COMMAND, META_ELIF, META_ELSE, META_ENDIF, META_IF, ps, and Command::type.
Referenced by addScript().
Definition at line 5306 of file pgbench.c.
References ALL_INIT_STEPS, fb(), pg_fatal, pg_log_error, and pg_log_error_detail.
Referenced by main().
Definition at line 3043 of file pgbench.c.
References getrand(), i, num_scripts, sql_script, total_weight, TState::ts_choose_rs, and ParsedScript::weight.
Referenced by advanceConnectionState().
|
static |
|
static |
Definition at line 1998 of file pgbench.c.
References fb(), pg_log_error, PGBT_BOOLEAN, and valueTypeName().
Referenced by evalLazyFunc(), and evalStandardFunc().
|
static |
Definition at line 2067 of file pgbench.c.
References fb(), pg_log_error, PGBT_DOUBLE, PGBT_INT, and valueTypeName().
Referenced by evalStandardFunc().
|
static |
Definition at line 2039 of file pgbench.c.
References fb(), FLOAT8_FITS_IN_INT64, pg_log_error, PGBT_DOUBLE, PGBT_INT, and valueTypeName().
Referenced by evalStandardFunc().
Definition at line 3027 of file pgbench.c.
References Assert, CState::command, ParsedScript::commands, CState::id, Command::meta, META_ENDPIPELINE, pg_log_info, SQL_COMMAND, sql_script, Command::type, and CState::use_file.
Referenced by readCommandResponse().
Definition at line 3017 of file pgbench.c.
References CState::command, CState::id, pg_log_error, and CState::use_file.
Referenced by advanceConnectionState(), and executeMetaCommand().
|
static |
Definition at line 1191 of file pgbench.c.
References b, fb(), pg_prng_double(), and x.
Referenced by getZipfianRand().
|
static |
Definition at line 5652 of file pgbench.c.
References appendPQExpBufferStr(), buf, fb(), initPQExpBuffer(), initSimpleStats(), META_NONE, pg_malloc(), skip_sql_comments(), and SQL_COMMAND.
Referenced by ParseScript().
Definition at line 4826 of file pgbench.c.
References appendPQExpBuffer(), appendPQExpBufferChar(), appendPQExpBufferStr(), Assert, PQExpBufferData::data, executeStatement(), fb(), fillfactor, fprintf, initPQExpBuffer(), INT64_FORMAT, naccounts, PART_HASH, PART_RANGE, partition_method, partitions, printfPQExpBuffer(), scale, termPQExpBuffer(), and unlogged_tables.
Referenced by initCreateTables().
Definition at line 3204 of file pgbench.c.
References CState::con, CONNECTION_BAD, fb(), PQ_PIPELINE_ABORTED, PQclear, PQgetResult, PQpipelineStatus(), and PQstatus().
Referenced by getSQLErrorStatus(), and readCommandResponse().
Definition at line 3523 of file pgbench.c.
References CState::con, CONNECTION_BAD, fb(), CState::id, CState::num_syncs, pg_log_error, PGRES_PIPELINE_SYNC, PQclear, PQexitPipelineMode(), PQgetResult, PQpipelineSync(), PQresultStatus, and PQstatus().
Referenced by advanceConnectionState().
Definition at line 1525 of file pgbench.c.
References conn, CONNECTION_BAD, dbName, fb(), keywords, PARAMS_ARRAY_SIZE, password, pg_log_error, pghost, pgport, PQconnectdbParams(), PQconnectionNeedsPassword(), PQerrorMessage(), PQfinish(), PQstatus(), progname, simple_prompt(), username, and values.
Referenced by advanceConnectionState(), main(), runInitSteps(), and threadRun().
|
static |
Definition at line 4630 of file pgbench.c.
References accumStats(), agg_interval, Assert, CState::cnt, epoch_shift, CState::estatus, ESTATUS_NO_ERROR, failures_detailed, fb(), fprintf, getResultString(), CState::id, initStats(), INT64_FORMAT, INT64CONST, latency_limit, TState::logfile, logfile, max_tries, next, now(), pg_prng_double(), pg_time_now(), sample_rate, throttle_delay, CState::tries, TState::ts_sample_rs, CState::use_file, and use_log.
Referenced by processXactStats(), and threadRun().
|
static |
Definition at line 3477 of file pgbench.c.
References Assert, canRetryError(), duration, CState::estatus, ESTATUS_NO_ERROR, latency_limit, max_tries, now(), pg_time_now_lazy(), timer_exceeded, CState::tries, and CState::txn_scheduled.
Referenced by advanceConnectionState().
Definition at line 1767 of file pgbench.c.
References fb(), Variables::max_vars, Variables::nvars, pg_realloc(), VARIABLES_ALLOC_MARGIN, and Variables::vars.
Referenced by lookupCreateVariable().
|
static |
Definition at line 2810 of file pgbench.c.
References evalLazyFunc(), evalStandardFunc(), and isLazyFunc().
Referenced by evaluateExpr().
|
static |
Definition at line 2126 of file pgbench.c.
References a1, a2, Assert, coerceToBool(), evalLazyFunc(), evaluateExpr(), fb(), isLazyFunc(), PGBENCH_AND, PGBENCH_CASE, PGBENCH_OR, PGBT_NULL, setBoolValue(), setNullValue(), and valueTruth().
Referenced by evalFunc(), and evalLazyFunc().
|
static |
Definition at line 2243 of file pgbench.c.
References Assert, b, PgBenchValue::bval, coerceToBool(), coerceToDouble(), coerceToInt(), CState::command, CState::cs_func_rs, evaluateExpr(), PgBenchExprLink::expr, fb(), fprintf, getExponentialRand(), getGaussianRand(), getHashFnv1a(), getHashMurmur2(), getrand(), getZipfianRand(), i, INT64_FORMAT, M_PI, Max, MAX_FARGS, MAX_ZIPFIAN_PARAM, Min, MIN_GAUSSIAN_PARAM, MIN_ZIPFIAN_PARAM, PgBenchExprLink::next, permute(), pg_add_s64_overflow(), PG_INT64_MIN, pg_log_error, pg_mul_s64_overflow(), pg_sub_s64_overflow(), PGBENCH_ABS, PGBENCH_ADD, PGBENCH_BITAND, PGBENCH_BITOR, PGBENCH_BITXOR, PGBENCH_DEBUG, PGBENCH_DIV, PGBENCH_DOUBLE, PGBENCH_EQ, PGBENCH_EXP, PGBENCH_GREATEST, PGBENCH_HASH_FNV1A, PGBENCH_HASH_MURMUR2, PGBENCH_INT, PGBENCH_IS, PGBENCH_LE, PGBENCH_LEAST, PGBENCH_LN, PGBENCH_LSHIFT, PGBENCH_LT, PGBENCH_MOD, PGBENCH_MUL, PGBENCH_NE, PGBENCH_NOT, PGBENCH_PERMUTE, PGBENCH_PI, PGBENCH_POW, PGBENCH_RANDOM, PGBENCH_RANDOM_EXPONENTIAL, PGBENCH_RANDOM_GAUSSIAN, PGBENCH_RANDOM_ZIPFIAN, PGBENCH_RSHIFT, PGBENCH_SQRT, PGBENCH_SUB, PGBT_BOOLEAN, PGBT_DOUBLE, PGBT_INT, PGBT_NULL, setBoolValue(), setDoubleValue(), setIntValue(), setNullValue(), type, PgBenchValue::type, unlikely, CState::use_file, and val.
Referenced by evalFunc().
|
static |
Definition at line 2826 of file pgbench.c.
References PgBenchExpr::constant, ENODE_CONSTANT, ENODE_FUNCTION, ENODE_VARIABLE, PgBenchExpr::etype, evalFunc(), fb(), PgBenchExpr::function, lookupVariable(), makeVariableValue(), pg_fatal, pg_log_error, PgBenchExpr::u, Variable::value, PgBenchExpr::variable, CState::variables, and PgBenchExpr::varname.
Referenced by evalLazyFunc(), evalStandardFunc(), and executeMetaCommand().
Definition at line 3432 of file pgbench.c.
References fb(), getVariable(), pg_log_error, and pg_strcasecmp().
Referenced by executeMetaCommand().
|
static |
Definition at line 4366 of file pgbench.c.
References __pg_log_level, appendPQExpBuffer(), Command::argc, Command::argv, Assert, buf, CState::command, commandFailed(), ParsedScript::commands, CState::con, conditional_stack_empty(), conditional_stack_peek(), conditional_stack_poke(), conditional_stack_pop(), conditional_stack_push(), CState::cstack, CSTATE_ABORTED, CSTATE_END_COMMAND, CSTATE_SLEEP, CSTATE_WAIT_RESULT, evaluateExpr(), evaluateSleep(), Command::expr, fb(), i, CState::id, IFSTATE_ELSE_FALSE, IFSTATE_ELSE_TRUE, IFSTATE_FALSE, IFSTATE_IGNORED, IFSTATE_NONE, IFSTATE_TRUE, initPQExpBuffer(), Command::meta, META_COMMAND, META_ELIF, META_ELSE, META_ENDIF, META_ENDPIPELINE, META_IF, META_SET, META_SETSHELL, META_SHELL, META_SLEEP, META_STARTPIPELINE, META_SYNCPIPELINE, now(), CState::num_syncs, PG_LOG_DEBUG, pg_log_debug, pg_time_now_lazy(), PQ_PIPELINE_OFF, PQ_PIPELINE_ON, PQenterPipelineMode(), PQpipelineStatus(), PQpipelineSync(), PQsendPipelineSync(), prepareCommandsInPipeline(), printfPQExpBuffer(), putVariableValue(), QUERY_PREPARED, QUERY_SIMPLE, querymode, runShellCommand(), CState::sleep_until, sql_script, termPQExpBuffer(), Command::type, unlikely, CState::use_file, valueTruth(), and CState::variables.
Referenced by advanceConnectionState().
Definition at line 1494 of file pgbench.c.
References fb(), pg_log_error, pg_log_error_detail, PGRES_COMMAND_OK, PQclear, PQerrorMessage(), PQexec(), and PQresultStatus.
Referenced by createPartitions(), initCreateFKeys(), initCreatePKeys(), initCreateTables(), initDropTables(), initGenerateDataClientSide(), initGenerateDataServerSide(), initTruncateTables(), and initVacuum().
|
static |
Definition at line 6218 of file pgbench.c.
References builtin_script, fb(), i, len, lengthof, listAvailableScripts(), name, and pg_log_error.
Referenced by main().
Definition at line 7828 of file pgbench.c.
References CState::con, fb(), and PQfinish().
Referenced by advanceConnectionState(), and disconnect_all().
Definition at line 5681 of file pgbench.c.
References Command::argc, Command::argv, Command::first_line, i, Command::lines, pg_free(), termPQExpBuffer(), and Command::varprefix.
Referenced by ParseScript().
|
static |
Definition at line 860 of file pgbench.c.
References Assert, fb(), pg_log_error, pg_log_error_detail, PGRES_TUPLES_OK, PQclear, PQerrorMessage(), PQexecParams(), PQgetvalue, PQresultStatus, table, and val.
Referenced by initPopulateTable().
|
static |
Definition at line 1103 of file pgbench.c.
References Assert, fb(), and pg_prng_double().
Referenced by evalStandardFunc().
Definition at line 4585 of file pgbench.c.
References StatsData::deadlock_failures, StatsData::other_sql_failures, and StatsData::serialization_failures.
Referenced by printProgressReport(), and printResults().
|
static |
Definition at line 1127 of file pgbench.c.
References Assert, fb(), MIN_GAUSSIAN_PARAM, and pg_prng_double_normal().
Referenced by evalStandardFunc().
Definition at line 1235 of file pgbench.c.
References fb(), FNV_OFFSET_BASIS, FNV_PRIME, i, and val.
Referenced by evalStandardFunc().
Definition at line 1260 of file pgbench.c.
References MM2_MUL, MM2_MUL_TIMES_8, MM2_ROT, and val.
Referenced by evalStandardFunc().
|
static |
Definition at line 2869 of file pgbench.c.
References fb(), META_ASET, META_ELIF, META_ELSE, META_ENDIF, META_ENDPIPELINE, META_GSET, META_IF, META_NONE, META_SET, META_SETSHELL, META_SHELL, META_SLEEP, META_STARTPIPELINE, META_SYNCPIPELINE, and pg_strcasecmp().
Referenced by process_backslash_command().
|
static |
Definition at line 1169 of file pgbench.c.
References fb(), and pg_prng_double().
Referenced by advanceConnectionState().
|
static |
Definition at line 1966 of file pgbench.c.
References Command::argc, Command::argv, getVariable(), and i.
Referenced by sendCommand().
|
static |
Definition at line 1092 of file pgbench.c.
References pg_prng_uint64_range().
Referenced by chooseScript(), and evalStandardFunc().
Definition at line 4597 of file pgbench.c.
References ESTATUS_DEADLOCK_ERROR, ESTATUS_OTHER_SQL_ERROR, ESTATUS_SERIALIZATION_ERROR, failures_detailed, and pg_fatal.
Referenced by doLog().
Definition at line 3232 of file pgbench.c.
References CState::con, CONNECTION_BAD, discardAvailableResults(), ERRCODE_T_R_DEADLOCK_DETECTED, ERRCODE_T_R_SERIALIZATION_FAILURE, ESTATUS_CONN_ERROR, ESTATUS_DEADLOCK_ERROR, ESTATUS_OTHER_SQL_ERROR, ESTATUS_SERIALIZATION_ERROR, fb(), and PQstatus().
Referenced by readCommandResponse().
Definition at line 5411 of file pgbench.c.
References Assert, ERRCODE_UNDEFINED_TABLE, fb(), PART_HASH, PART_NONE, PART_RANGE, partition_method, partitions, PG_DIAG_SQLSTATE, pg_fatal, pg_log_error, pg_log_error_hint, pg_log_warning, PGRES_TUPLES_OK, PQclear, PQdb(), PQerrorMessage(), PQexec(), PQgetisnull, PQgetvalue, PQntuples, PQresultErrorField, PQresultStatus, ps, and scale.
Referenced by main().
Definition at line 3593 of file pgbench.c.
References Assert, CONNECTION_BAD, fb(), pg_log_error, PQstatus(), PQTRANS_ACTIVE, PQTRANS_IDLE, PQTRANS_INERROR, PQTRANS_INTRANS, PQTRANS_UNKNOWN, PQtransactionStatus(), TSTATUS_CONN_ERROR, TSTATUS_IDLE, TSTATUS_IN_BLOCK, and TSTATUS_OTHER_ERROR.
Referenced by advanceConnectionState().
Definition at line 1625 of file pgbench.c.
References Assert, PgBenchValue::bval, PgBenchValue::dval, fb(), INT64_FORMAT, PgBenchValue::ival, lookupVariable(), name, pg_strdup(), PGBT_BOOLEAN, PGBT_DOUBLE, PGBT_INT, PGBT_NO_VALUE, PGBT_NULL, snprintf, Variable::svalue, PgBenchValue::type, PgBenchValue::u, and Variable::value.
Referenced by assignVariables(), evaluateSleep(), getQueryParams(), and runShellCommand().
Definition at line 1221 of file pgbench.c.
References Assert, computeIterativeZipfian(), MAX_ZIPFIAN_PARAM, and MIN_ZIPFIAN_PARAM.
Referenced by evalStandardFunc().
|
static |
Definition at line 7844 of file pgbench.c.
References timer_exceeded.
Referenced by setalarm().
|
static |
Definition at line 5018 of file pgbench.c.
References fb(), INT64_FORMAT, naccounts, and printfPQExpBuffer().
Referenced by initGenerateDataClientSide().
|
static |
Definition at line 5000 of file pgbench.c.
References fb(), INT64_FORMAT, and printfPQExpBuffer().
Referenced by initGenerateDataClientSide().
Definition at line 5280 of file pgbench.c.
References executeStatement(), fb(), fprintf, i, and lengthof.
Referenced by runInitSteps().
Definition at line 5242 of file pgbench.c.
References appendPQExpBuffer(), appendPQExpBufferStr(), PQExpBufferData::data, executeStatement(), fb(), fprintf, i, index_tablespace, initPQExpBuffer(), lengthof, PQescapeIdentifier(), PQfreemem(), resetPQExpBuffer(), and termPQExpBuffer().
Referenced by runInitSteps().
Definition at line 4895 of file pgbench.c.
References appendPQExpBuffer(), createPartitions(), PQExpBufferData::data, executeStatement(), fb(), fillfactor, fprintf, i, initPQExpBuffer(), lengthof, PART_NONE, partition_method, PARTITION_METHOD, PQescapeIdentifier(), PQfreemem(), printfPQExpBuffer(), scale, SCALE_32BIT_THRESHOLD, table, tablespace, termPQExpBuffer(), and unlogged_tables.
Referenced by runInitSteps().
Definition at line 4804 of file pgbench.c.
References executeStatement(), fb(), and fprintf.
Referenced by runInitSteps().
Definition at line 5152 of file pgbench.c.
References executeStatement(), fb(), fprintf, initAccount(), initBranch(), initPopulateTable(), initTeller(), initTruncateTables(), naccounts, nbranches, and ntellers.
Referenced by runInitSteps().
Definition at line 5184 of file pgbench.c.
References PQExpBufferData::data, executeStatement(), fb(), fprintf, initPQExpBuffer(), initTruncateTables(), INT64_FORMAT, naccounts, nbranches, ntellers, printfPQExpBuffer(), scale, and termPQExpBuffer().
Referenced by runInitSteps().
|
static |
Definition at line 5027 of file pgbench.c.
References CancelRequested, chars, PQExpBufferData::data, fb(), fprintf, get_table_relkind(), initPQExpBuffer(), INT64_FORMAT, j, LOG_STEP_SECONDS, pg_fatal, pg_snprintf(), PG_TIME_GET_DOUBLE, pg_time_now(), PGRES_COPY_IN, PQclear, PQendcopy(), PQerrorMessage(), PQexec(), PQputline(), PQresultStatus, PQserverVersion(), scale, start, table, termPQExpBuffer(), and use_quiet.
Referenced by initGenerateDataClientSide().
|
static |
Definition at line 1078 of file pgbench.c.
References base_random_sequence, pg_prng_seed(), and pg_prng_uint64().
Referenced by main().
|
static |
Definition at line 1384 of file pgbench.c.
References fb().
Referenced by create_sql_command(), initStats(), and process_backslash_command().
|
static |
Definition at line 1424 of file pgbench.c.
References fb(), initSimpleStats(), and start.
Referenced by doLog(), main(), ParseScript(), printProgressReport(), and threadRun().
|
static |
Definition at line 5009 of file pgbench.c.
References fb(), INT64_FORMAT, ntellers, and printfPQExpBuffer().
Referenced by initGenerateDataClientSide().
Definition at line 4990 of file pgbench.c.
References executeStatement().
Referenced by initGenerateDataClientSide(), and initGenerateDataServerSide().
Definition at line 5229 of file pgbench.c.
References executeStatement(), fb(), and fprintf.
Referenced by runInitSteps().
Definition at line 990 of file pgbench.c.
Referenced by makeVariableValue().
|
static |
Definition at line 2119 of file pgbench.c.
References PGBENCH_AND, PGBENCH_CASE, and PGBENCH_OR.
Referenced by evalFunc(), and evalLazyFunc().
Definition at line 6206 of file pgbench.c.
References builtin_script, fb(), fprintf, i, lengthof, and name.
Referenced by findBuiltin(), and main().
|
static |
Definition at line 1786 of file pgbench.c.
References enlargeVariables(), fb(), lookupVariable(), name, Variable::name, Variables::nvars, pg_log_error, pg_strdup(), Variable::svalue, valid_variable_name(), Variables::vars, and Variables::vars_sorted.
Referenced by putVariable(), and putVariableValue().
Definition at line 1598 of file pgbench.c.
References compareVariableNames(), fb(), name, Variables::nvars, qsort, Variables::vars, and Variables::vars_sorted.
Referenced by evaluateExpr(), getVariable(), lookupCreateVariable(), and main().
Definition at line 6731 of file pgbench.c.
References agg_interval, Assert, barrier, base_random_sequence, TState::bench_start, checkInitSteps(), StatsData::cnt, ParsedScript::commands, conditional_stack_create(), TState::conn_duration, continue_on_error, TState::create_time, CSTATE_FINISHED, dbName, StatsData::deadlock_failures, DEFAULT_INIT_STEPS, DEFAULT_NXACTS, BuiltinScript::desc, disconnect_all(), doConnect(), duration, end_time, epoch_shift, exit_on_abort, failures_detailed, fb(), fillfactor, findBuiltin(), fprintf, get_progname(), get_user_name_or_exit(), getopt_long(), GetTableInfo(), gettimeofday(), i, index_tablespace, initRandomState(), initStats(), INT64CONST, is_connect, j, StatsData::lag, StatsData::latency, TState::latency_late, latency_limit, listAvailableScripts(), TState::logfile, logfile_prefix, lookupVariable(), main_pid, max_tries, mergeSimpleStats(), Variable::name, BuiltinScript::name, nclients, no_argument, TState::nstate, nthreads, NUM_QUERYMODE, num_scripts, nxacts, optarg, optind, option_parse_int(), StatsData::other_sql_failures, parseScriptWeight(), PART_HASH, PART_NONE, PART_RANGE, partition_method, partitions, per_script_stats, pg_fatal, pg_free(), pg_log_debug, pg_log_error, pg_log_error_hint, pg_logging_increase_verbosity(), pg_logging_init(), pg_malloc(), pg_malloc0(), pg_prng_uint64(), pg_realloc(), pg_strcasecmp(), pg_strdup(), pg_time_now(), PGBT_NO_VALUE, pghost, pgport, postprocess_sql_command(), PQdb(), PQfinish(), PQhost(), PQport(), printResults(), printVersion(), process_builtin(), process_file(), progname, progress, progress_timestamp, putVariable(), putVariableInt(), putVariableValue(), querymode, QUERYMODE, random_seed, report_per_command, required_argument, StatsData::retried, StatsData::retries, runInitSteps(), sample_rate, scale, BuiltinScript::script, StatsData::serialization_failures, set_random_seed(), setalarm(), StatsData::skipped, SQL_COMMAND, sql_script, start_time, CState::state, TState::state, TState::stats, Variable::svalue, tablespace, TState::thread, THREAD_BARRIER_DESTROY, THREAD_BARRIER_INIT, THREAD_CREATE, THREAD_JOIN, threadRun(), throttle_delay, TState::tid, total_weight, tryExecuteStatement(), TState::ts_choose_rs, TState::ts_sample_rs, TState::ts_throttle_rs, type, PgBenchValue::type, unlogged_tables, usage(), use_log, use_quiet, username, Variable::value, verbose_errors, and ParsedScript::weight.
Definition at line 1658 of file pgbench.c.
References fb(), is_an_int(), Variable::name, pg_log_error, pg_strcasecmp(), pg_strncasecmp(), PGBT_NO_VALUE, setBoolValue(), setDoubleValue(), setIntValue(), setNullValue(), strtodouble(), strtoint64(), Variable::svalue, PgBenchValue::type, and Variable::value.
Referenced by evaluateExpr().
|
static |
Definition at line 1408 of file pgbench.c.
References SimpleStats::count, fb(), SimpleStats::max, SimpleStats::min, SimpleStats::sum, and SimpleStats::sum2.
Referenced by main(), and printProgressReport().
Definition at line 5520 of file pgbench.c.
References Command::argc, Command::argv, Assert, PQExpBufferData::data, fb(), Command::lines, MAX_ARGS, name, parseVariable(), pg_free(), pg_log_error, pg_strdup(), replaceVariable(), and sprintf.
Referenced by postprocess_sql_command().
Definition at line 5999 of file pgbench.c.
References addScript(), Command::argc, Command::argv, COMMANDS_ALLOC_NUM, create_sql_command(), fb(), Command::first_line, free_command(), initPQExpBuffer(), initStats(), Command::meta, META_ASET, META_GSET, pg_malloc(), pg_realloc(), pg_strdup(), pgbench_callbacks, process_backslash_command(), ps, PSCAN_BACKSLASH, PSCAN_EOL, PSCAN_INCOMPLETE, psql_scan(), psql_scan_create(), psql_scan_destroy(), psql_scan_finish(), psql_scan_get_location(), psql_scan_setup(), resetPQExpBuffer(), SQL_COMMAND, syntax_error(), termPQExpBuffer(), Command::type, and Command::varprefix.
Referenced by process_builtin(), and process_file().
Definition at line 6254 of file pgbench.c.
References fb(), pg_fatal, pg_malloc(), pg_strdup(), and WSEP.
Referenced by main().
Definition at line 1883 of file pgbench.c.
References fb(), i, IS_HIGHBIT_SET, name, and pg_malloc().
Referenced by assignVariables(), and parseQuery().
Definition at line 1293 of file pgbench.c.
References fb(), i, pg_leftmost_one_pos64(), pg_prng_seed(), pg_prng_uint64(), pg_prng_uint64_range(), and val.
Referenced by evalStandardFunc().
|
inlinestatic |
Definition at line 885 of file pgbench.c.
References INSTR_TIME_GET_MICROSEC, INSTR_TIME_SET_CURRENT, and now().
Referenced by advanceConnectionState(), doLog(), initPopulateTable(), main(), pg_time_now_lazy(), runInitSteps(), set_random_seed(), and threadRun().
|
inlinestatic |
Definition at line 895 of file pgbench.c.
References now(), and pg_time_now().
Referenced by advanceConnectionState(), doRetry(), executeMetaCommand(), printVerboseErrorMessages(), processXactStats(), and threadRun().
Definition at line 5701 of file pgbench.c.
References Assert, fb(), parseQuery(), pg_strdup(), psprintf(), QUERY_EXTENDED, QUERY_PREPARED, QUERY_SIMPLE, querymode, SQL_COMMAND, and strlcpy().
Referenced by main().
Definition at line 3085 of file pgbench.c.
References allocCStatePrepared(), Command::argc, Command::argv, ParsedScript::commands, CState::con, fb(), CState::id, pg_log_debug, pg_log_error, PGRES_COMMAND_OK, PQclear, PQerrorMessage(), PQprepare(), PQresultStatus, CState::prepared, Command::prepname, SQL_COMMAND, sql_script, Command::type, and CState::use_file.
Referenced by prepareCommandsInPipeline(), and sendCommand().
Definition at line 3118 of file pgbench.c.
References allocCStatePrepared(), Assert, CState::command, ParsedScript::commands, fb(), j, Command::meta, META_COMMAND, META_ENDPIPELINE, META_STARTPIPELINE, prepareCommand(), CState::prepared, sql_script, type, Command::type, and CState::use_file.
Referenced by executeMetaCommand().
|
static |
Definition at line 6312 of file pgbench.c.
References StatsData::cnt, cur, epoch_shift, fb(), fprintf, getFailures(), i, initStats(), INT64_FORMAT, StatsData::lag, StatsData::latency, latency_limit, max_tries, mergeSimpleStats(), now(), nthreads, PG_TIME_GET_DOUBLE, progress_timestamp, StatsData::retried, StatsData::retries, StatsData::skipped, snprintf, SimpleStats::sum, SimpleStats::sum2, and throttle_delay.
Referenced by threadRun().
|
static |
Definition at line 6452 of file pgbench.c.
References StatsData::cnt, StatsData::deadlock_failures, duration, failures_detailed, fb(), getFailures(), i, INT64_FORMAT, is_connect, StatsData::lag, StatsData::latency, latency_limit, SimpleStats::max, max_tries, nclients, nthreads, num_scripts, nxacts, StatsData::other_sql_failures, PART_NONE, partition_method, PARTITION_METHOD, partitions, per_script_stats, PG_TIME_GET_DOUBLE, printf, printSimpleStats(), progress, querymode, QUERYMODE, report_per_command, StatsData::retried, StatsData::retries, scale, StatsData::serialization_failures, StatsData::skipped, sql_script, ParsedScript::stats, SimpleStats::sum, throttle_delay, and total_weight.
Referenced by main().
|
static |
Definition at line 6407 of file pgbench.c.
References SimpleStats::count, fb(), printf, SimpleStats::sum, and SimpleStats::sum2.
Referenced by printResults().
|
static |
Definition at line 3630 of file pgbench.c.
References appendPQExpBuffer(), appendPQExpBufferStr(), buf, createPQExpBuffer(), fb(), CState::id, latency_limit, max_tries, now(), pg_log_info, pg_time_now_lazy(), printfPQExpBuffer(), resetPQExpBuffer(), CState::tries, and CState::txn_scheduled.
Referenced by advanceConnectionState().
Definition at line 6421 of file pgbench.c.
References _, fb(), formatPGVersionNumber(), PQparameterStatus(), PQserverVersion(), printf, and server_version.
Referenced by main().
|
static |
Definition at line 5738 of file pgbench.c.
References expr_lex_one_word(), expr_scanner_finish(), expr_scanner_get_substring(), expr_scanner_init(), expr_yyparse(), fb(), getMetaCommand(), initPQExpBuffer(), initSimpleStats(), j, MAX_ARGS, META_ASET, META_COMMAND, META_ELIF, META_ELSE, META_ENDIF, META_ENDPIPELINE, META_GSET, META_IF, META_SET, META_SETSHELL, META_SHELL, META_SLEEP, META_STARTPIPELINE, META_SYNCPIPELINE, pg_malloc0(), pg_strcasecmp(), pg_strdup(), source, syntax_error(), and termPQExpBuffer().
Referenced by ParseScript().
|
static |
Definition at line 6199 of file pgbench.c.
References fb(), and ParseScript().
Referenced by main().
Definition at line 6173 of file pgbench.c.
References buf, fb(), fd(), filename, free, ParseScript(), pg_fatal, and read_file_contents().
Referenced by main(), main(), and process_psqlrc_file().
|
static |
Definition at line 4753 of file pgbench.c.
References accumStats(), CState::cnt, doLog(), CState::estatus, ESTATUS_NO_ERROR, fb(), TState::latency_late, latency_limit, now(), per_script_stats, pg_time_now_lazy(), progress, sql_script, TState::stats, ParsedScript::stats, throttle_delay, CState::tries, CState::txn_begin, CState::txn_scheduled, CState::use_file, and use_log.
Referenced by advanceConnectionState().
|
static |
Definition at line 1823 of file pgbench.c.
References free, lookupCreateVariable(), name, pg_strdup(), PGBT_NO_VALUE, Variable::svalue, PgBenchValue::type, val, Variable::value, and value.
Referenced by main(), and readCommandResponse().
|
static |
Definition at line 1865 of file pgbench.c.
References name, putVariableValue(), setIntValue(), val, and value.
Referenced by main(), and runShellCommand().
|
static |
Definition at line 1846 of file pgbench.c.
References fb(), free, lookupCreateVariable(), name, Variable::svalue, Variable::value, and value.
Referenced by executeMetaCommand(), main(), and putVariableInt().
Definition at line 6140 of file pgbench.c.
References buf, fb(), fd(), pg_malloc(), and pg_realloc().
Referenced by process_file().
|
static |
Definition at line 3280 of file pgbench.c.
References Assert, canContinueOnError(), canRetryError(), CState::command, commandError(), CState::con, discardAvailableResults(), error(), CState::estatus, ESTATUS_META_COMMAND_ERROR, fb(), getSQLErrorStatus(), CState::id, META_ASET, META_ENDPIPELINE, META_GSET, META_NONE, CState::num_syncs, PG_DIAG_SQLSTATE, pg_free(), pg_log_debug, pg_log_error, PGRES_COMMAND_OK, PGRES_COPY_BOTH, PGRES_COPY_IN, PGRES_COPY_OUT, PGRES_EMPTY_QUERY, PGRES_FATAL_ERROR, PGRES_NONFATAL_ERROR, PGRES_PIPELINE_SYNC, PGRES_TUPLES_OK, PQclear, PQendcopy(), PQexitPipelineMode(), PQfname, PQgetResult, PQgetvalue, PQnfields, PQntuples, PQresultErrorField, PQresultErrorMessage, PQresultStatus, psprintf(), putVariable(), CState::use_file, CState::variables, and verbose_errors.
Referenced by advanceConnectionState().
Definition at line 1910 of file pgbench.c.
References fb(), len, pg_realloc(), and value.
Referenced by assignVariables(), and parseQuery().
Definition at line 5326 of file pgbench.c.
References appendPQExpBuffer(), appendPQExpBufferStr(), PQExpBufferData::data, doConnect(), fb(), fprintf, initCreateFKeys(), initCreatePKeys(), initCreateTables(), initDropTables(), initGenerateDataClientSide(), initGenerateDataServerSide(), initPQExpBuffer(), initVacuum(), pg_fatal, pg_log_error, PG_TIME_GET_DOUBLE, pg_time_now(), PQfinish(), ResetCancelConn(), SetCancelConn(), setup_cancel_handler(), start, and termPQExpBuffer().
Referenced by main().
|
static |
Definition at line 2911 of file pgbench.c.
References arg, fb(), getVariable(), i, len, pg_log_debug, pg_log_error, putVariableInt(), SHELL_COMMAND_SIZE, and timer_exceeded.
Referenced by executeMetaCommand().
Definition at line 3151 of file pgbench.c.
References Command::argc, Command::argv, assignVariables(), CState::command, CState::con, fb(), free, getQueryParams(), CState::id, MAX_ARGS, pg_log_debug, pg_strdup(), PQsendQuery(), PQsendQueryParams(), PQsendQueryPrepared(), prepareCommand(), Command::prepname, QUERY_EXTENDED, QUERY_PREPARED, QUERY_SIMPLE, querymode, and CState::variables.
Referenced by advanceConnectionState().
Definition at line 6689 of file pgbench.c.
References base_random_sequence, fb(), pg_log_error, pg_log_error_detail, pg_log_info, pg_prng_seed(), pg_strong_random(), pg_time_now(), and random_seed.
Referenced by main().
|
static |
Definition at line 2096 of file pgbench.c.
References fb(), and PGBT_BOOLEAN.
Referenced by evalLazyFunc(), evalStandardFunc(), and makeVariableValue().
|
static |
Definition at line 2112 of file pgbench.c.
References fb(), and PGBT_DOUBLE.
Referenced by evalStandardFunc(), and makeVariableValue().
|
static |
Definition at line 2104 of file pgbench.c.
References fb(), and PGBT_INT.
Referenced by evalStandardFunc(), makeVariableValue(), and putVariableInt().
|
static |
Definition at line 2088 of file pgbench.c.
References fb(), and PGBT_NULL.
Referenced by evalLazyFunc(), evalStandardFunc(), and makeVariableValue().
Definition at line 5617 of file pgbench.c.
References fb().
Referenced by create_sql_command().
|
static |
Definition at line 1049 of file pgbench.c.
References fb(), pg_log_error, str, and unlikely.
Referenced by makeVariableValue().
Definition at line 1024 of file pgbench.c.
References fb(), pg_log_error, str, and unlikely.
Referenced by makeVariableValue().
| void syntax_error | ( | const char * | source, |
| int | lineno, | ||
| const char * | line, | ||
| const char * | command, | ||
| const char * | msg, | ||
| const char * | more, | ||
| int | column | ||
| ) |
Definition at line 5581 of file pgbench.c.
References appendPQExpBuffer(), buf, fb(), fprintf, initPQExpBuffer(), pg_log_error, printfPQExpBuffer(), source, and termPQExpBuffer().
Referenced by expr_yyerror_more(), ParseScript(), pg_lsn_in_safe(), process_backslash_command(), and string_to_uuid().
|
static |
Definition at line 7528 of file pgbench.c.
References add_socket_to_set(), advanceConnectionState(), agg_interval, alloc_socket_set(), arg, barrier, TState::bench_start, clear_socket_set(), CState::con, TState::conn_duration, CSTATE_ABORTED, CSTATE_CHOOSE_SCRIPT, CSTATE_FINISHED, CSTATE_SLEEP, CSTATE_THROTTLE, CSTATE_WAIT_RESULT, CSTATE_WAIT_ROLLBACK_RESULT, disconnect_all(), doConnect(), doLog(), EINTR, epoch_shift, exit_on_abort, fb(), free_socket_set(), i, initStats(), is_connect, TState::logfile, logfile_prefix, main_pid, MAXPGPATH, now(), TState::nstate, pg_fatal, PG_INT64_MAX, pg_log_error, pg_time_now(), pg_time_now_lazy(), pg_usleep(), PQerrorMessage(), PQsocket(), printProgressReport(), progress, CState::sleep_until, snprintf, socket_has_input(), SOCKET_WAIT_METHOD, start, TState::started_time, CState::state, TState::state, THREAD_BARRIER_WAIT, THREAD_FUNC_RETURN, TState::throttle_trigger, TState::tid, CState::txn_scheduled, use_log, and wait_on_socket_set().
Referenced by main().
Definition at line 1510 of file pgbench.c.
References pg_log_error, pg_log_error_detail, PGRES_COMMAND_OK, PQclear, PQerrorMessage(), PQexec(), and PQresultStatus.
Referenced by main().
Definition at line 904 of file pgbench.c.
References ALL_INIT_STEPS, DEFAULT_INIT_STEPS, fb(), printf, and progname.
Referenced by main().
Definition at line 1732 of file pgbench.c.
References fb(), IS_HIGHBIT_SET, and name.
Referenced by lookupCreateVariable().
|
static |
Definition at line 2018 of file pgbench.c.
References Assert, fb(), PGBT_BOOLEAN, PGBT_DOUBLE, PGBT_INT, and PGBT_NULL.
Referenced by evalLazyFunc(), and executeMetaCommand().
|
static |
Definition at line 1976 of file pgbench.c.
References Assert, fb(), PGBT_BOOLEAN, PGBT_DOUBLE, PGBT_INT, PGBT_NO_VALUE, and PGBT_NULL.
Referenced by coerceToBool(), coerceToDouble(), and coerceToInt().
|
static |
Definition at line 8037 of file pgbench.c.
Referenced by threadRun().
|
static |
Definition at line 259 of file pgbench.c.
Referenced by doLog(), main(), and threadRun().
|
static |
Definition at line 488 of file pgbench.c.
Referenced by BarrierArriveAndDetach(), BarrierArriveAndDetachExceptLast(), BarrierArriveAndWait(), BarrierAttach(), BarrierDetach(), BarrierDetachImpl(), BarrierInit(), BarrierParticipants(), BarrierPhase(), main(), pthread_barrier_destroy(), pthread_barrier_init(), pthread_barrier_wait(), and threadRun().
|
static |
Definition at line 485 of file pgbench.c.
Referenced by initRandomState(), main(), and set_random_seed().
|
static |
Definition at line 789 of file pgbench.c.
Referenced by findBuiltin(), and listAvailableScripts().
Definition at line 779 of file pgbench.c.
Referenced by canContinueOnError(), and main().
Definition at line 298 of file pgbench.c.
Referenced by doConnect(), main(), pg_database_size_name(), and PQsetdbLogin().
|
static |
Definition at line 175 of file pgbench.c.
Referenced by advanceConnectionState(), doRetry(), main(), pgss_planner(), pgss_ProcessUtility(), printResults(), and test_timing().
|
static |
Definition at line 176 of file pgbench.c.
Referenced by advanceConnectionState(), main(), pqConnectDBComplete(), pqSocketCheck(), PQsocketPoll(), pqWaitTimed(), test_timing(), and wait_until_connected().
|
static |
Definition at line 456 of file pgbench.c.
Referenced by doLog(), main(), printProgressReport(), and threadRun().
Definition at line 778 of file pgbench.c.
Referenced by main(), and threadRun().
Definition at line 292 of file pgbench.c.
Referenced by doLog(), getResultString(), main(), and printResults().
|
static |
Definition at line 188 of file pgbench.c.
Referenced by btoptions(), createPartitions(), default_reloptions(), gistbuild(), gistoptions(), hashoptions(), initCreateTables(), main(), spgoptions(), and table_block_relation_estimate_size().
Definition at line 218 of file pgbench.c.
Referenced by initCreatePKeys(), and main().
|
static |
Definition at line 266 of file pgbench.c.
Referenced by advanceConnectionState(), main(), printResults(), and threadRun().
|
static |
Definition at line 212 of file pgbench.c.
Referenced by advanceConnectionState(), doLog(), doRetry(), main(), printProgressReport(), printResults(), printVerboseErrorMessages(), and processXactStats().
Definition at line 299 of file pgbench.c.
Referenced by main(), and threadRun().
|
static |
Definition at line 270 of file pgbench.c.
Referenced by main(), and threadRun().
|
static |
Definition at line 290 of file pgbench.c.
Referenced by doLog(), doRetry(), main(), printProgressReport(), printResults(), and printVerboseErrorMessages().
|
static |
Definition at line 264 of file pgbench.c.
Referenced by main(), and printResults().
|
static |
Definition at line 265 of file pgbench.c.
Referenced by main(), printProgressReport(), and printResults().
|
static |
Definition at line 773 of file pgbench.c.
Referenced by addScript(), allocCStatePrepared(), chooseScript(), main(), and printResults().
|
static |
Definition at line 174 of file pgbench.c.
Referenced by advanceConnectionState(), main(), and printResults().
|
static |
Definition at line 234 of file pgbench.c.
Referenced by createPartitions(), GetTableInfo(), initCreateTables(), main(), and printResults().
Definition at line 235 of file pgbench.c.
Referenced by initCreateTables(), and printResults().
|
static |
Definition at line 224 of file pgbench.c.
Referenced by createPartitions(), dshash_create(), GetTableInfo(), main(), pg_partition_tree(), printResults(), and ReindexPartitions().
Definition at line 261 of file pgbench.c.
Referenced by main(), printResults(), and processXactStats().
|
static |
Definition at line 295 of file pgbench.c.
Referenced by ConnectDatabase(), doConnect(), initialize_environment(), main(), main(), and PQsetdbLogin().
Definition at line 296 of file pgbench.c.
Referenced by ConnectDatabase(), doConnect(), initialize_environment(), main(), main(), and PQsetdbLogin().
Definition at line 300 of file pgbench.c.
Referenced by doConnect(), main(), and usage().
|
static |
Definition at line 262 of file pgbench.c.
Referenced by _bt_parallel_scan_and_sort(), _gin_parallel_scan_and_build(), _gin_process_worker_data(), CheckpointWriteDelay(), heapam_index_build_range_scan(), IsCheckpointOnSchedule(), main(), printResults(), processXactStats(), pullback(), pushfwd(), reindex_index(), table_index_build_range_scan(), table_index_build_scan(), threadRun(), WaitForLockers(), WaitForLockersMultiple(), and WaitForOlderSnapshots().
Definition at line 263 of file pgbench.c.
Referenced by main(), and printProgressReport().
|
static |
Definition at line 721 of file pgbench.c.
Referenced by executeMetaCommand(), main(), postprocess_sql_command(), printResults(), and sendCommand().
Definition at line 722 of file pgbench.c.
Referenced by main(), and printResults().
|
static |
Definition at line 238 of file pgbench.c.
Referenced by main(), and set_random_seed().
Definition at line 267 of file pgbench.c.
Referenced by advanceConnectionState(), main(), and printResults().
|
static |
|
static |
Definition at line 182 of file pgbench.c.
Referenced by AdjustDays(), AdjustFractDays(), AdjustFractDays(), AdjustFractMicroseconds(), AdjustFractSeconds(), AdjustFractYears(), AdjustMicroseconds(), AdjustYears(), apply_typmod(), apply_typmod_special(), ArrayGetOffset(), cash_numeric(), consider_groupingsets_paths(), createPartitions(), executeItemOptUnwrapTarget(), float8_regr_accum(), GetTableInfo(), gincostestimate(), initCreateTables(), initGenerateDataServerSide(), initPopulateTable(), int4_cash(), int8_cash(), main(), make_numeric_typmod(), numeric(), numeric_cash(), numeric_out_sci(), numeric_round(), numeric_to_number(), numeric_trunc(), and printResults().
|
static |
Definition at line 772 of file pgbench.c.
Referenced by addScript(), advanceConnectionState(), allocCStatePrepared(), chooseScript(), commandError(), executeMetaCommand(), main(), prepareCommand(), prepareCommandsInPipeline(), printResults(), and processXactStats().
Definition at line 217 of file pgbench.c.
Referenced by _selectTablespace(), add_tablespace_footer(), apw_compare_blockinfo(), apw_dump_now(), apw_load_buffers(), autoprewarm_database_main(), describeOneTableDetails(), dumpDatabase(), dumpTableSchema(), FileSetCreate(), FileSetPath(), gen_reindex_command(), initCreateTables(), main(), main(), process_rel_infos(), recordDependencyOnTablespace(), reindex_all_databases(), reindex_one_database(), shdepLockAndCheckObject(), and TempTablespacePath().
|
static |
Definition at line 204 of file pgbench.c.
Referenced by accumStats(), advanceConnectionState(), doLog(), main(), printProgressReport(), printResults(), and processXactStats().
|
static |
Definition at line 304 of file pgbench.c.
Referenced by advanceConnectionState(), doRetry(), handle_sig_alarm(), and runShellCommand().
|
static |
Definition at line 774 of file pgbench.c.
Referenced by chooseScript(), main(), and printResults().
Definition at line 193 of file pgbench.c.
Referenced by createPartitions(), initCreateTables(), and main().
|
static |
Definition at line 257 of file pgbench.c.
Referenced by doLog(), main(), processXactStats(), and threadRun().
|
static |
Definition at line 258 of file pgbench.c.
Referenced by initPopulateTable(), and main().
Definition at line 297 of file pgbench.c.
Referenced by doConnect(), and main().
Definition at line 776 of file pgbench.c.
Referenced by advanceConnectionState(), main(), and readCommandResponse().