From: | Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> |
---|---|
To: | jian he <jian(dot)universality(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: tests for pg_stat_progress_copy.tuples_skipped |
Date: | 2025-03-03 09:05:23 |
Message-ID: | c425dbaa-df6e-4c03-8329-21944ce56aea@oss.nttdata.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2025/01/10 23:50, jian he wrote:
> hi.
> seems no regress tests for pg_stat_progress_copy.tuples_skipped.
>
> CopyFrom
> pgstat_progress_update_param(PROGRESS_COPY_TUPLES_SKIPPED,
> cstate->num_errors);
>
> there is coverage for it. but in regress test, we didn't really print
> out this value (cstate->num_errors)
>
> The attached patch did minor changes on src/test/regress/sql/copy.sql.
> so we can check if pgstat_progress_update_param(PROGRESS_COPY_TUPLES_SKIPPED..)
> is working as intended or not.
Thanks for the patch!
The patch basically looks good to me.
I’ve made some minor cosmetic adjustments — the updated patch is attached.
Unless there are any objections, I'm thinking to commit it.
Regards,
--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION
Attachment | Content-Type | Size |
---|---|---|
v2-0001-Add-regression-tests-for-pg_stat_progress_copy.tu.patch | text/plain | 4.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Suraj Kharage | 2025-03-03 09:13:40 | Re: Support for NO INHERIT to INHERIT state change with named NOT NULL constraints |
Previous Message | Benoit Lobréau | 2025-03-03 09:03:44 | Re: long-standing data loss bug in initial sync of logical replication |