aboutsummaryrefslogtreecommitdiff
path: root/src/include/fe_utils/print.h
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-04-08 20:23:18 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-04-08 20:23:18 -0300
commitc09b18f21c52cbcf8718d6c267c84fcfea3739a9 (patch)
tree14ae5d520050d3302c8ecae141a2deda7c17a962 /src/include/fe_utils/print.h
parent279d86afdbed550425bc9d1327ade2dc0028ad33 (diff)
downloadpostgresql-c09b18f21c52cbcf8718d6c267c84fcfea3739a9.tar.gz
postgresql-c09b18f21c52cbcf8718d6c267c84fcfea3739a9.zip
Support \crosstabview in psql
\crosstabview is a completely different way to display results from a query: instead of a vertical display of rows, the data values are placed in a grid where the column and row headers come from the data itself, similar to a spreadsheet. The sort order of the horizontal header can be specified by using another column in the query, and the vertical header determines its ordering from the order in which they appear in the query. This only allows displaying a single value in each cell. If more than one value correspond to the same cell, an error is thrown. Merging of values can be done in the query itself, if necessary. This may be revisited in the future. Author: Daniel Verité Reviewed-by: Pavel Stehule, Dean Rasheed
Diffstat (limited to 'src/include/fe_utils/print.h')
-rw-r--r--src/include/fe_utils/print.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/fe_utils/print.h b/src/include/fe_utils/print.h
index ff902370f32..18aee93ecd5 100644
--- a/src/include/fe_utils/print.h
+++ b/src/include/fe_utils/print.h
@@ -206,6 +206,8 @@ extern void printTable(const printTableContent *cont,
extern void printQuery(const PGresult *result, const printQueryOpt *opt,
FILE *fout, bool is_pager, FILE *flog);
+extern char column_type_alignment(Oid);
+
extern void setDecimalLocale(void);
extern const printTextFormat *get_line_style(const printTableOpt *opt);
extern void refresh_utf8format(const printTableOpt *opt);