MCPcopy Create free account
hub / github.com/apache/cloudberry / PQgetvalue

Function PQgetvalue

src/interfaces/libpq/fe-exec.c:3680–3686  ·  view source on GitHub ↗

* PQgetvalue: * return the value of field 'field_num' of row 'tup_num' */

Source from the content-addressed store, hash-verified

3678 * return the value of field 'field_num' of row 'tup_num'
3679 */
3680char *
3681PQgetvalue(const PGresult *res, int tup_num, int field_num)
3682{
3683 if (!check_tuple_field_number(res, tup_num, field_num))
3684 return NULL;
3685 return res->tuples[tup_num][field_num].value;
3686}
3687
3688/* PQgetlength:
3689 * returns the actual length of a field value in bytes.

Callers 15

get_remote_estimateFunction · 0.85
vacuumloFunction · 0.85
materializeResultFunction · 0.85
storeRowFunction · 0.85
sql_execFunction · 0.85
gp_dist_wait_statusFunction · 0.85
getResUsageFunction · 0.85
dumpResGroupInfoFunction · 0.85

Calls 1

check_tuple_field_numberFunction · 0.85

Tested by 15

try_complete_stepFunction · 0.68
test_pipeline_abortFunction · 0.68
test_singlerowmodeFunction · 0.68
test_transactionFunction · 0.68
process_resultFunction · 0.68
exec_sql_with_resultsetFunction · 0.68
mainFunction · 0.68
exec_sql_with_resultsetFunction · 0.68