Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store partition key in gp_partition_template #14508

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

l-wang
Copy link
Contributor

@l-wang l-wang commented Nov 21, 2022

Here are some reminders before you submit the pull request

  • Add tests for the change
  • Document changes
  • Communicate in the mailing list if needed
  • Pass make installcheck
  • Review a PR in return to support the community

Syntax does not allow ADD PARTITION command to include a subpartition
template
@l-wang l-wang force-pushed the store-partkey-in-template branch 4 times, most recently from 047a40c to 1fc9c47 Compare November 23, 2022 16:10
Previously, when subpartition template is present, ALTER TABLE ADD
PARTITION uses the current first child's partition key to work together
with the gpPartitionDefinition stored in the template. This could
introduce inconvenience to the users because the first child partition
may change over time as a new child partitions can be created and old
child partitions can be detached, and the partition keys of different
child partitions could differ if users have used the upstream syntax to
create new child partitions.

This patch stores the partition key along side of the
gpPartitionDefinition in the gp_partition_template table, so that the
subpartition template is more self-contained.
@l-wang l-wang marked this pull request as ready for review November 23, 2022 17:16
@ashwinstar
Copy link
Contributor

ashwinstar commented Aug 2, 2023

@l-wang I believe plan is not to proceed with this change, right? Please can you reflect latest status for this PR.

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

Successfully merging this pull request may close these issues.

None yet

2 participants