Re: [PATCH] Add min() and max() aggregate functions for xid8

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Ken Kato <katouknl(at)oss(dot)nttdata(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Add min() and max() aggregate functions for xid8
Date: 2022-02-08 14:16:38
Message-ID: 8be8f0b7-757c-87f7-fe45-db754da5d6ac@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2022/02/08 18:43, Ken Kato wrote:
> On 2022-02-08 15:34, Fujii Masao wrote:
>> Thanks for updating the patch! It basically looks good to me. I
>> applied the following small changes to the patch. Updated version of
>> the patch attached. Could you review this version?
>
> Thank you for the patch!
>
> It looks good to me!

Thanks for the review!

> I'm not sure how strict coding conventions are, but the following line is over 80 characters.
> +insert into xid8_t1 values ('0'), ('010'), ('42'), ('0xffffffffffffffff'), ('-1');
> Therefore, I made a patch which removed ('010') just to fit in 80 characters.

If you want to avoid the line longer than 80 columns, you should break it into two or more rather than remove the test code, I think. What to test is more important than formatting.

Also the following descriptions about formatting would be helpful.

---------------------------
https://www.postgresql.org/docs/devel/source-format.html

Limit line lengths so that the code is readable in an 80-column window.
(This doesn't mean that you must never go past 80 columns. For instance,
breaking a long error message string in arbitrary places just to keep
the code within 80 columns is probably not a net gain in readability.)
---------------------------

Therefore I'm ok with the patch that I posted upthread. Also I'm ok if you will break that longer line into two and post new patch. Or if the value '010' is really useless for the test purpose, I'm also ok if you remove it. Thought?

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2022-02-08 14:24:13 Re: Refactoring SSL tests
Previous Message Andrew Dunstan 2022-02-08 14:10:36 Re: [RFC] building postgres with meson - perl embedding