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
pg_appendonly.compresstype, compresslevel and blocksize reset to defaults after ALTER reorganize=true|false #8207
Comments
RCA:
The fix is to replace:
with
|
Impact:
This seems to suggest that these values for pg_appendonly ( Even if no code-path actually reads these values, we might, in the future, mistakenly or otherwise use them. Thus, we should either:
|
Just reflecting the reality that this continues to be the issue and is still reproducible. |
According to GPDB doc, the table-level options still take effect on AOCO tables, but just the column-level options will take precedence:https://docs.vmware.com/en/VMware-Tanzu-Greenplum/6/greenplum-database/GUID-admin_guide-ddl-ddl-storage.html#precedence-of-compression-settings-11 And, at least from the metadata perspective, GPDB behaves so too:
So if no column-level option is given for a certain column, And if we add new column w/o specifying column-level options, it will also take the table-level options:
Now back to the current issue. I found that after reorganize,
Then if we add new column, it fails to use the table-level option:
But if I applied a similar fix as mentioned in #8207 (comment) (not exactly the same because the code changed), new column will be able to utilize the table-level options. Therefore, it seems that this comment is not correct:
The table-level option will be used when column-level option is absent. And we should keep them in |
Greenplum version or build
master
Expected behavior
ALTER TABLE with reorganize=true|false should not modify the compresstype, compresslevel and blocksize columns of the pg_appendonly table for the table under consideration.
Actual behavior
The compress_type is changed to empty "".
Step to reproduce the behavior
The text was updated successfully, but these errors were encountered: