Re: Using COPY FREEZE in pgbench

From: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
To: coelho(at)cri(dot)ensmp(dot)fr
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Using COPY FREEZE in pgbench
Date: 2021-07-04 08:31:56
Message-ID: 20210704.173156.2097825742796807238.t-ishii@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi fabien,

>> So overall gain by the patch is around 15%, whereas the last test
>> before the commit was 14%. It seems the patch is still beneficial
>> after the commit.
>
> Yes, that's good!

Yeah!

> I had a quick look again, and about the comment:
>
> /*
> * If partitioning is not enabled and server version is 14.0 or later, we
> * can take account of freeze option of copy.
> */
>
> I'd suggest instead the shorter:
>
> /* use COPY with FREEZE on v14 and later without partioning */
>
> Or maybe even to fully drop the comment, because the code is clear
> enough and the doc already says it.

I'd prefer to leave a comment. People (including me) tend to forget
things in the future, that are obvious now:-)

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp

Attachment Content-Type Size
pgbench_freeze_v6.diff text/x-patch 1.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2021-07-04 08:42:48 Re: Numeric multiplication overflow errors
Previous Message David Rowley 2021-07-04 06:49:04 Re: Small clean up in nodeAgg.c