@@ -993,9 +993,10 @@ testdb=>
993
993
<varlistentry id="APP-PSQL-meta-commands-crosstabview">
994
994
<term><literal>\crosstabview [
995
995
<replaceable class="parameter">colV</replaceable>
996
- <replaceable class="parameter">colH</replaceable>[:<replaceable class="parameter">scolH</replaceable>]
997
- [<replaceable class="parameter">colD</replaceable>]
998
- ] </literal></term>
996
+ [ <replaceable class="parameter">colH</replaceable>
997
+ [ <replaceable class="parameter">colD</replaceable>
998
+ [ <replaceable class="parameter">sortcolH</replaceable>
999
+ ] ] ] ] </literal></term>
999
1000
<listitem>
1000
1001
<para>
1001
1002
Executes the current query buffer (like <literal>\g</literal>) and
@@ -1004,16 +1005,11 @@ testdb=>
1004
1005
The output column identified by <replaceable class="parameter">colV</>
1005
1006
becomes a vertical header and the output column identified by
1006
1007
<replaceable class="parameter">colH</replaceable>
1007
- becomes a horizontal header, optionally sorted by ranking data obtained
1008
- from column <replaceable class="parameter">scolH</replaceable>.
1008
+ becomes a horizontal header.
1009
1009
<replaceable class="parameter">colD</replaceable> identifies
1010
1010
the output column to display within the grid.
1011
- If <replaceable class="parameter">colD</replaceable> is not
1012
- specified and there are exactly three columns in the result set,
1013
- the column that is neither
1014
- <replaceable class="parameter">colV</replaceable> nor
1015
- <replaceable class="parameter">colH</replaceable>
1016
- is displayed; if there are more columns, an error is reported.
1011
+ <replaceable class="parameter">sortcolH</replaceable> identifies
1012
+ an optional sort column for the horizontal header.
1017
1013
</para>
1018
1014
1019
1015
<para>
@@ -1024,6 +1020,12 @@ testdb=>
1024
1020
and <replaceable class="parameter">colH</replaceable> as column 2.
1025
1021
<replaceable class="parameter">colH</replaceable> must differ from
1026
1022
<replaceable class="parameter">colV</replaceable>.
1023
+ If <replaceable class="parameter">colD</replaceable> is not
1024
+ specified, then there must be exactly three columns in the query
1025
+ result, and the column that is neither
1026
+ <replaceable class="parameter">colV</replaceable> nor
1027
+ <replaceable class="parameter">colH</replaceable>
1028
+ is taken to be <replaceable class="parameter">colD</replaceable>.
1027
1029
</para>
1028
1030
1029
1031
<para>
@@ -1037,11 +1039,11 @@ testdb=>
1037
1039
found in column <replaceable class="parameter">colH</replaceable>,
1038
1040
with duplicates removed. By default, these appear in the same order
1039
1041
as in the query results. But if the
1040
- optional <replaceable class="parameter">scolH </> argument is given, it
1041
- identifies a column whose values must be integer numbers, and the
1042
+ optional <replaceable class="parameter">sortcolH </> argument is given,
1043
+ it identifies a column whose values must be integer numbers, and the
1042
1044
values from <replaceable class="parameter">colH</replaceable> will
1043
1045
appear in the horizontal header sorted according to the
1044
- corresponding <replaceable class="parameter">scolH </> values.
1046
+ corresponding <replaceable class="parameter">sortcolH </> values.
1045
1047
</para>
1046
1048
1047
1049
<para>
0 commit comments