rotate psql output

From: Ben Carbery <ben(dot)carbery(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: rotate psql output
Date: 2010-09-30 11:17:24
Message-ID: AANLkTimAcseJeLUfikmsEM_EjQA3mUh1-cyLp2m_FSKy@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a query that returns many columns but few rows. I would like to
display output horizontally instead of vertically, i.e. rotating by 90
degress, so column headings appear in the left margin, and the output is not
'wrapped'.
Is this possible? I have had no luck searching for this as rotate usually
means log rotation.
BC

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tommy Gildseth 2010-09-30 11:19:51 Re: rotate psql output
Previous Message Vincenzo Romano 2010-09-30 11:09:38 [9.0] On temporary tables