#include "postgres_fe.h"
#include "common.h"
#include "common/int.h"
#include "common/logging.h"
#include "crosstabview.h"
#include "pqexpbuffer.h"
#include "psqlscanslash.h"
#include "settings.h"
Go to the source code of this file.
Definition at line 506 of file crosstabview.c.
References avlBalance(), avlRotate(), avlUpdateHeight(), b, _avl_node::children, and tree.
Referenced by avlInsertNode().
Definition at line 495 of file crosstabview.c.
References _avl_node::children, and _avl_node::height.
Referenced by avlAdjustBalance().
Definition at line 577 of file crosstabview.c.
References avlCollectFields(), _avl_node::children, _avl_node::field, idx(), and tree.
Referenced by avlCollectFields(), and PrintResultInCrosstab().
Definition at line 448 of file crosstabview.c.
References avlFree(), _avl_node::children, pg_free(), and tree.
Referenced by avlFree(), and PrintResultInCrosstab().
Definition at line 438 of file crosstabview.c.
References pg_malloc0(), and tree.
Referenced by PrintResultInCrosstab().
Definition at line 529 of file crosstabview.c.
References avlAdjustBalance(), avlInsertNode(), _avl_node::children, cmp(), _avl_node::field, _avl_node::height, pg_malloc(), pivotFieldCompare(), and tree.
Referenced by avlInsertNode(), and avlMergeValue().
Definition at line 560 of file crosstabview.c.
References avlInsertNode(), name, _pivot_field::name, _pivot_field::rank, _pivot_field::sort_value, and tree.
Referenced by PrintResultInCrosstab().
Definition at line 481 of file crosstabview.c.
References avlUpdateHeight(), before(), and _avl_node::children.
Referenced by avlAdjustBalance().
Definition at line 472 of file crosstabview.c.
References _avl_node::children, and _avl_node::height.
Referenced by avlAdjustBalance(), and avlRotate().
Definition at line 636 of file crosstabview.c.
References arg, dequote_downcase_identifier(), _psqlSettings::encoding, i, idx(), pg_log_error, PQfname, PQnfields, and pset.
Referenced by PrintResultInCrosstab().
Definition at line 695 of file crosstabview.c.
References a, b, and _pivot_field::name.
Referenced by avlInsertNode(), and printCrosstab().
Definition at line 286 of file crosstabview.c.
References Assert(), printTableContent::cells, printTableContent::cellsadded, column_type_alignment(), error(), i, idx(), _psqlSettings::logfile, name, _pivot_field::name, printQueryOpt::nullPrint, pg_free(), pg_log_error, pg_malloc(), pivotFieldCompare(), _psqlSettings::popt, PQfname, PQftype(), PQgetisnull, PQgetvalue, PQntuples, printTable(), printTableAddHeader(), printTableCleanup(), printTableInit(), pset, _psqlSettings::queryFout, _pivot_field::rank, printQueryOpt::title, and printQueryOpt::topt.
Referenced by PrintResultInCrosstab().
Definition at line 104 of file crosstabview.c.
References Assert(), avlCollectFields(), avlFree(), avlInit(), avlMergeValue(), _avl_tree::count, CROSSTABVIEW_MAX_COLUMNS, _psqlSettings::ctv_args, i, indexOfColumn(), pg_free(), pg_log_error, pg_malloc(), PGRES_TUPLES_OK, PQgetisnull, PQgetvalue, PQnfields, PQntuples, PQresultStatus, printCrosstab(), pset, rankSort(), _avl_tree::root, and val.
Referenced by PrintQueryResult().
Definition at line 711 of file crosstabview.c.
References a, b, and pg_cmp_s32().
Referenced by rankSort().
Definition at line 588 of file crosstabview.c.
References i, pg_free(), pg_malloc(), qsort, _pivot_field::rank, rankCompare(), _pivot_field::sort_value, and val.
Referenced by PrintResultInCrosstab().