Sep 2025

1 commit
Improve error message for duplicate labels when creating an enum type.
2 Sep 2025Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #53 of 3 reviewers saw the final version

The commit preserves the duplicate-check algorithm, error text, and regression case from #5. In src/backend/catalog/pg_enum.c it removes an obsolete comment, places the check after label-length validation, and simplifies the loop; it also renames the test type to dup_enum, consistent with Tom Lane's account of cosmetic adjustments #7.

  • Rahila Syedsaw the final versiontrailerRahila questioned the nested-loop cost and check placement in #2; the implementation she reviewed in #1 subsequently received only light changes.
  • Jim Jonessaw the final versiontrailerJim requested consistent error wording and regression tests in #4, then explicitly approved the revised patch in #6.
  • Tom Lanesaw the final versiontrailerTom committed the revised patch with cleanup and reported performance testing supporting the retained nested-loop approach in #7.

Credits across 1 commit

Author
Yugo Nagata1
Reviewer
Jim Jones1
Rahila Syed1
Tom Lane1
Committer
Tom Lane1