| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Time to change pg_regress diffs to unified by default? |
| Date: | 2017-04-07 02:14:31 |
| Message-ID: | 20170407021431.GB2658646@tornado.leadboat.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Apr 06, 2017 at 07:01:32PM -0400, Tom Lane wrote:
> Andres Freund <andres(at)anarazel(dot)de> writes:
> > I personally, and I know of a bunch of other regular contributors, find
> > context diffs very hard to read. Besides general dislike, for things
> > like regression test output context diffs are just not well suited.
>
> Personally, I disagree completely. Unified diffs are utterly unreadable
> for anything beyond trivial cases of small well-separated changes.
>
> It's possible that regression failure diffs will usually fall into that
> category, but I'm not convinced.
For reading patches, I frequently use both formats. Overall, I perhaps read
unified 3/4 of the time and context 1/4 of the time.
For regression diffs, I use PG_REGRESS_DIFF_OPTS=-u and have never converted a
regression diff to context form. Hence, +1 for the proposed change.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Craig Ringer | 2017-04-07 02:30:25 | Re: Faster methods for getting SPI results (460% improvement) |
| Previous Message | David Rowley | 2017-04-07 02:13:10 | Re: Time to change pg_regress diffs to unified by default? |