Re: [patch] Proposal for \rotate in psql

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Daniel Verite <daniel(at)manitou-mail(dot)org>, Greg Stark <stark(at)mit(dot)edu>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [patch] Proposal for \rotate in psql
Date: 2015-09-09 14:00:50
Message-ID: CA+TgmoYg-VBtDS7vFkjkg0w2gztmSqT8cW-+bVJ=RRiJC7xHcw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 8, 2015 at 4:58 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> 2015-09-08 22:55 GMT+02:00 Daniel Verite <daniel(at)manitou-mail(dot)org>:
>>
>> Pavel Stehule wrote:
>>
>> > rotate ~ sounds like transpose matrix, what is not true in this case.
>
> for me the relation rotation is exactly what \x does

\x doesn't exactly rotate it either. \x puts the column headers down
the side instead of across the top, but it doesn't put the rows across
the top instead of down the side. Rather, each row is listed in a
separate chunk. This feature is doing something else again. I've
actually never seen this particular transformation anywhere except for
Microsoft Excel's pivot tables, which I still find confusing.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-09-09 14:04:01 Re: Autonomous Transaction is back
Previous Message Robert Haas 2015-09-09 13:55:10 Re: DBT-3 with SF=20 got failed