tests for pg_stat_progress_copy.tuples_skipped

Started by jian healmost 2 years ago5 messageshackers
Jump to latest
#1jian he
jian.universality@gmail.com

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.

Attachments:

v1-0001-tests-for-pg_stat_progress_copy.tuples_skipped.patchtext/x-patch; charset=US-ASCII; name=v1-0001-tests-for-pg_stat_progress_copy.tuples_skipped.patchDownload+15-5
#2Fujii Masao
masao.fujii@oss.nttdata.com
In reply to: jian he (#1)
Re: tests for pg_stat_progress_copy.tuples_skipped

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

Attachments:

v2-0001-Add-regression-tests-for-pg_stat_progress_copy.tu.patchtext/plain; charset=UTF-8; name=v2-0001-Add-regression-tests-for-pg_stat_progress_copy.tu.patchDownload+17-5
#3jian he
jian.universality@gmail.com
In reply to: Fujii Masao (#2)
Re: tests for pg_stat_progress_copy.tuples_skipped

On Mon, Mar 3, 2025 at 5:05 PM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:

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.

I checked it again manually.
It looks good to me.

#4Josef Šimánek
josef.simanek@gmail.com
In reply to: Fujii Masao (#2)
Re: tests for pg_stat_progress_copy.tuples_skipped

po 3. 3. 2025 v 10:05 odesílatel Fujii Masao
<masao.fujii@oss.nttdata.com> napsal:

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.

Looks good to me.

Show quoted text

Regards,

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

#5Fujii Masao
masao.fujii@oss.nttdata.com
In reply to: jian he (#3)
Re: tests for pg_stat_progress_copy.tuples_skipped

On 2025/03/04 17:57, jian he wrote:

On Mon, Mar 3, 2025 at 5:05 PM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:

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.

I checked it again manually.
It looks good to me.

I've pushed the patch. Thanks!

Regards,

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