Skip to content

Commit

Permalink
Added compression method option while creating a column. pgadmin-org#…
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-joshi committed Sep 14, 2023
1 parent d69b428 commit ffec77d
Show file tree
Hide file tree
Showing 52 changed files with 2,939 additions and 11 deletions.
4 changes: 4 additions & 0 deletions docs/en_US/column_dialog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ are disabled if inapplicable.)
a text value.
* Use the drop-down listbox next to *Collation* to apply a collation setting to
the column.
* Use the drop-down listbox next to *Compression* to set the compression method
for the column. Compression is supported only for variable-width data types,
and is used only when the column's storage mode is main or extended. This
option is available from v14 and above.

Click the *Constraints* tab to continue.

Expand Down
Binary file modified docs/en_US/images/column_definition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/en_US/release_notes_7_7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ Bundled PostgreSQL Utilities
New features
************

| `Issue #642 <https://github.com/pgadmin-org/pgadmin4/issues/642>`_ - Added support to select/deselect objects in the Backup dialog.
| `Issue #4805 <https://github.com/pgadmin-org/pgadmin4/issues/4805>`_ - Added all the new options of the 'WITH' clause in the subscription dialog.
| `Issue #6378 <https://github.com/pgadmin-org/pgadmin4/issues/6378>`_ - Added USING method while creating the table.
| `Issue #6379 <https://github.com/pgadmin-org/pgadmin4/issues/6379>`_ - Added compression method option while creating a column.
| `Issue #6383 <https://github.com/pgadmin-org/pgadmin4/issues/6383>`_ - Added Strategy, Locale Provider, ICU Locale, ICU Rules, and OID options while creating a database.
| `Issue #6400 <https://github.com/pgadmin-org/pgadmin4/issues/6400>`_ - Added USING method while creating the materialized view.
| `Issue #6736 <https://github.com/pgadmin-org/pgadmin4/issues/6736>`_ - Add support for additional ID token claim checks for OAuth 2 authentication.
Expand All @@ -34,5 +36,8 @@ Housekeeping
Bug fixes
*********

| `Issue #6274 <https://github.com/pgadmin-org/pgadmin4/issues/6274>`_ - Fix an issue where user is not able to change the password when SMTP is not configured.
| `Issue #6704 <https://github.com/pgadmin-org/pgadmin4/issues/6704>`_ - Ensure user is redirected to login page after failed login.
| `Issue #6712 <https://github.com/pgadmin-org/pgadmin4/issues/6712>`_ - Ensure that Materialized view size fields in "Statistics" should be human-readable.
| `Issue #6730 <https://github.com/pgadmin-org/pgadmin4/issues/6730>`_ - Fix an issue where changing the password shows success but the new password is not working.
| `Issue #6738 <https://github.com/pgadmin-org/pgadmin4/issues/6738>`_ - Fix an issue where login form doesn't appear if internal auth source is removed.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,23 @@ export default class ColumnSchema extends BaseUISchema {
},{
id: 'max_val_attprecision', skipChange: true, visible: false, type: '',
},{
id: 'attcompression', label: gettext('Compression'),
group: gettext('Definition'), type: 'select', deps: ['cltype'],
controlProps: { placeholder: gettext('Select compression'), allowClear: false},
options: [
{label: 'PGLZ', value: 'pglz'},
{label: 'LZ4', value: 'lz4'}
],
disabled: function(state) {
return !obj.attlenRange(state);
},
depChange: (state)=>{
if(!obj.attlenRange(state)) {
return { attcompression: '' };
}
},
min_version: 140000,
}, {
id: 'collspcname', label: gettext('Collation'), cell: 'select',
type: 'select', group: gettext('Definition'),
deps: ['cltype'], options: this.collspcnameOptions,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#"
ALTER COLUMN "col_comp_$%{}[]()&*^!@""'`\/#" SET COMPRESSION lz4;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Column: testschema."table_3_$%{}[]()&*^!@""'`\/#"."col_comp_$%{}[]()&*^!@""'`\/#"

-- ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#" DROP COLUMN IF EXISTS "col_comp_$%{}[]()&*^!@""'`\/#";

ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#"
ADD COLUMN "col_comp_$%{}[]()&*^!@""'`\/#" character varying COLLATE pg_catalog."default" NOT NULL DEFAULT 1;

ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#"
ALTER COLUMN "col_comp_$%{}[]()&*^!@""'`\/#" SET COMPRESSION lz4;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#"
ADD COLUMN "col_comp_$%{}[]()&*^!@""'`\/#" character varying NOT NULL DEFAULT 1;

ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#"
ALTER COLUMN "col_comp_$%{}[]()&*^!@""'`\/#" SET COMPRESSION pglz;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Column: testschema."table_3_$%{}[]()&*^!@""'`\/#"."col_comp_$%{}[]()&*^!@""'`\/#"

-- ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#" DROP COLUMN IF EXISTS "col_comp_$%{}[]()&*^!@""'`\/#";

ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#"
ADD COLUMN "col_comp_$%{}[]()&*^!@""'`\/#" character varying COLLATE pg_catalog."default" NOT NULL DEFAULT 1;

ALTER TABLE IF EXISTS testschema."table_3_$%{}[]()&*^!@""'`\/#"
ALTER COLUMN "col_comp_$%{}[]()&*^!@""'`\/#" SET COMPRESSION pglz;
Loading

0 comments on commit ffec77d

Please sign in to comment.