|
PostgreSQL Source Code git master
|
#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.
Data Structures | |
| struct | _pivot_field |
| struct | _avl_node |
| struct | _avl_tree |
Typedefs | |
| typedef struct _pivot_field | pivot_field |
| typedef struct _avl_node | avl_node |
| typedef struct _avl_tree | avl_tree |
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().
|
static |
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().
|
static |
Definition at line 529 of file crosstabview.c.
References avlAdjustBalance(), avlInsertNode(), _avl_node::children, cmp(), fb(), _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(), _avl_node::children, and fb().
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, fb(), i, idx(), pg_log_error, PQfname, PQnfields, and pset.
Referenced by PrintResultInCrosstab().
Definition at line 695 of file crosstabview.c.
References a, b, fb(), and _pivot_field::name.
Referenced by avlInsertNode(), and printCrosstab().
|
static |
Definition at line 286 of file crosstabview.c.
References Assert, column_type_alignment(), error(), fb(), 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, printQueryOpt::title, and printQueryOpt::topt.
Referenced by PrintResultInCrosstab().
Definition at line 104 of file crosstabview.c.
References Assert, avlCollectFields(), avlFree(), avlInit(), avlMergeValue(), CROSSTABVIEW_MAX_COLUMNS, _psqlSettings::ctv_args, fb(), i, indexOfColumn(), pg_free(), pg_log_error, pg_malloc(), PGRES_TUPLES_OK, PQgetisnull, PQgetvalue, PQnfields, PQntuples, PQresultStatus, printCrosstab(), pset, rankSort(), and val.
Referenced by PrintQueryResult().
Definition at line 711 of file crosstabview.c.
References a, b, and pg_cmp_s32().
Referenced by rankSort().
|
static |
Definition at line 588 of file crosstabview.c.
References fb(), i, pg_free(), pg_malloc(), qsort, rankCompare(), and val.
Referenced by PrintResultInCrosstab().