• Alvaro Herrera's avatar
    Support \crosstabview in psql · c09b18f2
    Alvaro Herrera authored
    \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
    c09b18f2
print.c 80.7 KB