Re: [patch] Proposal for \rotate in psql - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: [patch] Proposal for \rotate in psql
Date
Msg-id CAFj8pRAOE3UuWroVnwvPpvvem7Fe2W1uaEWsK=9LrLVvKMsHUg@mail.gmail.com
Whole thread Raw
In response to Re: [patch] Proposal for \rotate in psql  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [patch] Proposal for \rotate in psql  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers


2015-12-19 6:55 GMT+01:00 Pavel Stehule <pavel.stehule@gmail.com>:


2015-12-18 21:21 GMT+01:00 Daniel Verite <daniel@manitou-mail.org>:
        Pavel Stehule wrote:

> The symbol 'X' in two column mode should be centred - now it is aligned to
> left, what is not nice

Currently print.c does not support centered alignment, only left and right.
Should we add it, it would have to work for all output formats
(except obviously for "unaligned"):
- aligned
- wrapped
- html
- latex
- latex-longtable
- troff-ms
- asciidoc

Because of this, I believe that adding support for a 'c' alignment
might be a significant patch by itself, and that it should be considered
separately.

ok
 

I agree that if it existed, the crosstabview command should use it
as you mention, but I'm not volunteering to implement it myself, at
least not in the short term.

I'll look how much work it is

attached patch allows align to center.

everywhere where left/right align was allowed, the center align is allowed

Regards

Pavel
 

Regards

Pavel
 

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Making tab-complete.c easier to maintain
Next
From: Michael Paquier
Date:
Subject: Re: Making tab-complete.c easier to maintain