Skip to content

Fix gpdiff.pl duplicate "verbose" option specification - #2114

Open
tuhaihe wants to merge 1 commit into
apache:mainfrom
tuhaihe:fix-gpdiff-duplicate-verbose-option
Open

tuhaihe wants to merge 1 commit into
apache:mainfrom
tuhaihe:fix-gpdiff-duplicate-verbose-option

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Oct 10, 2026

Copy link
Copy Markdown
Member

With Perl 5.40 (Getopt::Long 2.57, as in Ubuntu 26.04), every run of gpdiff.pl prints a warning:

  Duplicate specification "verbose|Verbose" for option "verbose"

It is printed more than a thousand times in a test run, and it reaches the test output.

Getopt::Long ignores case by default and gpdiff.pl does not turn that off (it only sets pass_through), so "Verbose" is already matched by "verbose". Use "verbose" alone. Both -verbose and -Verbose still work.

Checked on Ubuntu 26.04: the warning is gone with the new specification, and Ubuntu 24.04 (Getopt::Long 2.54) is not affected either way.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


With Perl 5.40 (Getopt::Long 2.57, as in Ubuntu 26.04), every run of
gpdiff.pl prints a warning:

  Duplicate specification "verbose|Verbose" for option "verbose"

It is printed more than a thousand times in a test run, and it reaches
the test output.

Getopt::Long ignores case by default and gpdiff.pl does not turn that
off (it only sets pass_through), so "Verbose" is already matched by
"verbose". Use "verbose" alone. Both -verbose and -Verbose still work.

Checked on Ubuntu 26.04: the warning is gone with the new specification,
and Ubuntu 24.04 (Getopt::Long 2.54) is not affected either way.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
@tuhaihe tuhaihe added this to the Ubuntu 26.04 Support milestone Oct 10, 2026
@tuhaihe

tuhaihe commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

This change has been verified in Ubuntu 26.04 on #2096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant