Re: Typos and inconsistencies in code - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Typos and inconsistencies in code
Date
Msg-id 20191030010511.GC1590@paquier.xyz
Whole thread Raw
In response to Re: Typos and inconsistencies in code  (vignesh C <vignesh21@gmail.com>)
Responses Re: Typos and inconsistencies in code
List pgsql-hackers
On Tue, Oct 29, 2019 at 05:27:20PM +0530, vignesh C wrote:
> I have attached the updated patch with the fixes.

The changes in rangetypes_gist.c are not correct, the usual pattern to
add an "s" after the structure name is quite common when referring to
multiple elements.  We could perhaps use "put-your-struct entries"
instead, but I have seen the pattern of HEAD quite a lot as well (see
also for example mcv.c with SortItem that is a file your patch
touches).

A comment indentation was wrong in detoast.c, not the fault of this
patch but I have fixed it at the same time.

Note: there is room for refactoring in pgtypeslib with the pg_tm/tm
business..

The fixes in imath.c had better be submitted in upstream:
https://github.com/creachadair/imath/blob/v1.29/imath.c
So I have raised an issue here:
https://github.com/creachadair/imath/issues/43
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_waldump erroneously outputs newline for FPWs, and anotherminor bug
Next
From: Alvaro Herrera
Date:
Subject: Re: Rearranging ALTER TABLE to avoid multi-operations bugs