Re: [patch] Proposal for \rotate in psql

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Greg Stark <stark(at)mit(dot)edu>, Daniel Verite <daniel(at)manitou-mail(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [patch] Proposal for \rotate in psql
Date: 2015-09-07 21:08:48
Message-ID: CAKFQuwZq=uaSxT5SionHDQaXMh0UUzW5H6VNsXYLqsKiDODfcA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Sep 7, 2015 at 4:18 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
wrote:

>
>
> 2015-09-07 22:14 GMT+02:00 Greg Stark <stark(at)mit(dot)edu>:
>
>> On Fri, Sep 4, 2015 at 5:08 PM, Daniel Verite <daniel(at)manitou-mail(dot)org>
>> wrote:
>> > I'm not dead set on \rotate and suggested other names
>> > previously in [1], but none of them seems decisively
>> > superior.
>>
>>
>> Fwiw I like \rotate. It's pretty clear what it means and it sounds
>> similar to but not exactly the same as pivot.
>>
>
> rotate ~ sounds like transpose matrix, what is not true in this case.
>
>
So? If PostgreSQL had any native matrix processing capabilities this would
maybe warrant a bit of consideration.

​https://github.com/hadley/tidyr

\spread
\unfold
\rotate

Given the role that psql performs I do think \rotate to be the least
problematic choice; I concur that avoiding \pivot is desirable due to SQL's
usage.

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2015-09-07 21:14:34 Re: creating extension including dependencies
Previous Message Jeff Davis 2015-09-07 20:52:31 Re: PATCH: numeric timestamp in log_line_prefix