Zhangbaowen-Hashdata / cloudberrydb

https://cloudberrydb.org/
Apache License 2.0
1 stars 0 forks source link

测试pr生成release_note #4

Closed Zhangbaowen-Hashdata closed 3 months ago

Zhangbaowen-Hashdata commented 3 months ago

During ALTER COLUMN TYPE of an indexed column, we check if the index can be re-used. If so, we preserve the existing relfilenode instead of removing it. However, in GPDB the preservation is done on QD and the relfilenode is packaged in another ALTER TABLE subcommand to be handled later. So QE might make its index to have QD's relfilenode, which could cause data missing/corruption errors.

The fix is for QE to go through the generated index command, and replace QD's relfilenode with its own.

fix #ISSUE_Number


Change logs

Describe your change clearly, including what problem is being solved or what feature is being added.

If it has some breaking backward or forward compatibility, please clary.

Why are the changes needed?

Describe why the changes are necessary.

Does this PR introduce any user-facing change?

If yes, please clarify the previous behavior and the change this PR proposes.

How was this patch tested?

Please detail how the changes were tested, including manual tests and any relevant unit or integration tests.

Contributor's Checklist

Here are some reminders and checklists before/when submitting your pull request, please check them: