Skip to content

Conversation

@yjhjstz
Copy link
Member

@yjhjstz yjhjstz commented Aug 11, 2025

This reverts commit a863997e6459e907979478f013b588447385ca07.

The issues with restoring enums in distribution and partition keys has been resolved in pg_dump by the cherry-pick of 6290d5d.

A gpbackup fix disables gp_enable_segment_copy_checking before loading a table/matview with an enum hash distribution/partition, then reorganizing the table after it's loaded and resetting the GUC.

With these two changes it's safe to unban enums as distribution and hash keys.

Fixes #1300

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


Copy link
Contributor

@my-ship-it my-ship-it left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@avamingli avamingli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

This reverts commit a863997e6459e907979478f013b588447385ca07.

The issues with restoring enums in distribution and partition
keys has been resolved in pg_dump by the cherry-pick of
7e7c5b683985c85fb990c4d49ab960cbc83434b4.

A gpbackup fix disables gp_enable_segment_copy_checking before
loading a table/matview with an enum hash distribution/partition,
then reorganizing the table after it's loaded and resetting
the GUC.

With these two changes it's safe to unban enums as distribution
and hash keys.
@avamingli avamingli merged commit 39ef2bd into apache:main Aug 13, 2025
27 checks passed
@yjhjstz yjhjstz deleted the yjh/fix_enum branch November 17, 2025 21:10
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.

Cannot use ENUM column as a distribution key, unlike Greenplum 7, 6

4 participants