Re: wrapping in extended mode doesn't work well with default pager

From: Greg Stark <stark(at)mit(dot)edu>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: Sergey Muraviov <sergey(dot)k(dot)muraviov(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Emre Hasegeli <emre(at)hasegeli(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: wrapping in extended mode doesn't work well with default pager
Date: 2014-08-18 11:30:40
Message-ID: CAM-w4HO_r6dU7fS79xHyBz_mgSTa5D3GMJzNHs+Ki297j656tw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Aug 5, 2014 at 3:41 AM, Noah Misch <noah(at)leadboat(dot)com> wrote:
> This remains open for 9.4. Your proposal to revert the feature in 9.4 and fix
> it in 9.5 sounds reasonable.

Ok, I've gone ahead and done this. I'm sorry for the delays and confusion.

> On Thu, Jul 10, 2014 at 04:15:35PM +0100, Greg Stark wrote:
>> On Mon, Jul 7, 2014 at 8:35 AM, Sergey Muraviov
>> <sergey(dot)k(dot)muraviov(at)gmail(dot)com> wrote:
>> > So what's wrong with the patch?
>> > And what should I change in it for 9.5?
>>
>> Possibly nothing. The concern was tha it's modifying the output in
>> cases where the output is not \expanded and/or not wrapped. Now I've
>> mostly convinced myself that those cases should change to be
>> consistent with the wrapped output but there was at least one tool
>> depending on that format (check_postgres) so perhaps it's not
>> worthwhile and having it be inconsistent would be safer.
>
> I did try psql-wrapped-expanded-fix-v5.patch with the tests Peter and I posted
> upthread, and those tests now behave as they do in released versions. What
> cases did you find that still change vs. 9.3?

I was trying to build a spreadsheet of every combination of these
options. It turns out that 4-dimensional spreadsheets are kind of
awkward.

I think the fundamental dilemma was the same that was discussed
upthread. If wrapped expanded mode should have an extra space padding
column for the wrap indicators then all expanded modes should have
that column to be consistent since wrapping shouldn't change the
amount of padding. But that means unrelated queries changes format in
ways people weren't expecting. They were depending on the basically
inconsistent formatting where expanded didn't have the same padding
that non-expanded formats had which was only the case because nobody
had anticiapted expanded format needing space for wrapping indicators.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-08-18 11:54:49 PQgetssl() and alternative SSL implementations
Previous Message Rahila Syed 2014-08-18 11:19:48 Fwd: [REVIEW] Re: Compression of full-page-writes