Re: Improving isolationtester's data output - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Improving isolationtester's data output
Date
Msg-id 795039.1623872236@sss.pgh.pa.us
Whole thread Raw
In response to Re: Improving isolationtester's data output  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Improving isolationtester's data output
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2021-06-15 22:44:29 -0400, Tom Lane wrote:
>> +    memset(&popt, 0, sizeof(popt));
>> +    popt.header = true;
>> +    popt.align = true;
>> +    popt.fieldSep = "|";
>> +    PQprint(stdout, res, &popt);

> Is there an argument for not aligning because that can make diffs larger
> than the actual data changes? E.g. one row being longer will cause all
> rows in the result set to be shown as differing because of the added
> padding?  This has been a problem in the normal regression tests, where
> we solved it by locally disabling alignment. It might be unproblematic
> for isolationtester, because we don't often have large result sets...

I tried it that way first, and didn't much like the look of it.

I think the result sets in the isolation tests don't have a big
problem here: as you say, they aren't very large, and in most of them
the column widths are fairly uniform anyway.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Improving isolationtester's data output
Next
From: "Andres Freund"
Date:
Subject: Re: Improving isolationtester's data output