tests for pg_stat_progress_copy.tuples_skipped

jian he <jian.universality@gmail.com>

From: jian he <jian.universality@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-01-10T14:50:32Z
Lists: pgsql-hackers

Attachments

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.

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Add regression tests for pg_stat_progress_copy.tuples_skipped.