Sync up behavior on how partition maintenance works between Greenplum 6/7 and Cloudberry #691
-
DescriptionFound a difference in behavior that could have a big impact for customers migrating from Greenplum to Cloudberry. Worse still is that it would be difficult to notice and is a subtle change (ie. it doesn't fail but changes behavior). What is happening is that when I create a partitioned table with storage options like appendoptimized=true, compression, columnar, etc and then later add a new partition to the table. In Greenplum, the add partition inherits the storage access method info from the parent table Example:Create partitioned table with appendoptimized and compression:CREATE TABLE star.trd_fct ( WITH ( alter table star.trd_fct add partition start ('2027-01-01') inclusive end ('2028-01-01') exclusive; In Cloudberry, new partition added as:star_demo=# \d+ star.trd_fct_1_prt_11 In Greenplum:star_demo=# \d+ star.trd_fct_1_prt_11 Use case/motivationSince many customers might have existing scripts that don't specify the storage and access method information when adding partitions I would like Cloudberry to work like Greenplum and default to using the parents options (it still should honor the options if the user did set them specifically on the partition but should default to what the table was created with) Related issuesDidn't see anything related to this Are you willing to submit a PR?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hi @lmugnano4537, it's a known behavior. For migration compatibility, seems it's better to keep the old behavior. @gfphoenix78, please investigate more on the behavior difference. |
Beta Was this translation helpful? Give feedback.
-
Hi, @lmugnano4537 , I'll take a look for this issue, do you run cloudberry on the main branch? |
Beta Was this translation helpful? Give feedback.
-
I've opened a PR to track this issue. The child partition table should inherits access method, reloptions from its parents. |
Beta Was this translation helpful? Give feedback.
I've opened a PR to track this issue. The child partition table should inherits access method, reloptions from its parents.
Inheriting column encodings is still working in progress.