-
Notifications
You must be signed in to change notification settings - Fork 22
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
ADBDEV-3174: New GUC to inherit storage options with ALTER TABLE ADD PARTITION #618
base: adb-6.x-dev
Are you sure you want to change the base?
Conversation
Allure report https://allure-ee.adsw.io/launch/54185 |
Allure report https://allure-ee.adsw.io/launch/54272 |
Allure report https://allure-ee.adsw.io/launch/54329 |
When a new partitioned table is created, its partitions inherit storage options (appendonly, orientation, compresstype, compresslevel and blocksize) from the parent table. But when adding partitions using the ALTER TABLE ADD PARTITION command, new partitions are added with storage options as specified in gp_default_storage_options (unless these options are explicitly specified in the DDL or subpartition template). This patch adds a new GUC gp_add_partition_inherits_table_setting with the default value false. When set to true, the ALTER TABLE ADD PARTITION command will add new partitions with storage options inherited from the parent table (unless these options are explicitly specified in the DDL or subpartition template).
e3a6530
to
d0502bb
Compare
Allure report https://allure-ee.adsw.io/launch/54369 |
@RekGRpth , what about making changes in the transformAlterTable_all_PartitionStmt function? The function name begins with "transform", so I think it is more suitable place. The patch below is a draft.
|
moved |
Allure report https://allure-ee.adsw.io/launch/55091 |
Allure report https://allure-ee.adsw.io/launch/55093 |
@RekGRpth In the current version after this queries
the added partition has more options than the table and these options are arranged in a different order
What about this patch to fix the problem?
|
Applied. |
Allure report https://allure-ee.adsw.io/launch/56366 |
Allure report https://allure-ee.adsw.io/launch/56370 |
Failed job Resource group isolation tests on x86_64: https://gitlab.adsw.io/arenadata/github_mirroring/gpdb/-/jobs/696864 |
Allure report https://allure-ee.adsw.io/launch/57991 |
Failed job Resource group isolation tests on x86_64: https://gitlab.adsw.io/arenadata/github_mirroring/gpdb/-/jobs/765914 |
Failed job Resource group isolation tests on ppc64le: https://gitlab.adsw.io/arenadata/github_mirroring/gpdb/-/jobs/765915 |
bender build |
Allure report https://allure.adsw.io/launch/83263 |
Allure report https://allure.adsw.io/launch/83532 |
Allure report https://allure.adsw.io/launch/84210 |
Allure report https://allure.adsw.io/launch/84214 |
Allure report https://allure.adsw.io/launch/84218 |
Allure report https://allure.adsw.io/launch/84227 |
Allure report https://allure.adsw.io/launch/84235 |
AO table inherit storage options with ALTER TABLE ADD PARTITION
Add the gp_add_partition_inherits_table_setting GUC for AO tables. Its default
value is false. When the GUC is set to true, the ALTER TABLE ADD PARTITION
query will add new partitions with storage options (appendonly, orientation,
compresstype, compresslevel, blocksize and checksum) inherited from the parent
table (unless these options are explicitly specified in the DDL or subpartition
template).