Re: [PATCH] Improvements to "Getting started" tutorial for Google Code-in task

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: LAM JUN RONG <h1710074(at)nushigh(dot)edu(dot)sg>
Cc: Andreas 'ads' Scherbaum <ads(at)pgug(dot)de>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Improvements to "Getting started" tutorial for Google Code-in task
Date: 2019-01-03 23:05:09
Message-ID: 201901032305.373in52ykfdi@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2018-Nov-06, LAM JUN RONG wrote:

> Hi,
>
> I must have forgotten to change the diff.

I noticed that you edited the diff by hand -- the line count in the last
hunk doesn't match. This causes both "path" and "git apply" to reject
the patch saying it's corrupted. I suggest not to do that. I can get
it to apply by changing the "+239,14" in the previous-to-last hunk
header to "+239,13" IIRC. (I think there's a utility to recompute line
counts in hunk headers, "rediff" I think, but better not to edit the
patch manually in the first place.)

Besides that, I have a hard time considering this patch committable.
There are some good additions, but they are mixed with some wording
changes that seem to be there just because the author doesn't like the
original, not because they're actual improvements.

One thing I definitely didn't like is that lines go well over 80 chars
per line. We aren't terribly strict about that when there are long XML
tags, but this patch is over the top in that department.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2019-01-03 23:25:57 Re: pg_stat_ssl additions
Previous Message David Rowley 2019-01-03 22:57:37 Re: Delay locking partitions during query execution