1
0
mirror of synced 2026-10-23 07:08:55 +03:00

Show fill factor, toast tuple target and parallel workers in the table Properties panel. #9212 (#10594)

This commit is contained in:
Dave Page
2026-10-15 12:34:34 +01:00
parent 5711c4dd5a
commit 755cfec19e
2 changed files with 14 additions and 3 deletions

View File

@@ -894,17 +894,17 @@ export default class TableSchema extends BaseUISchema {
},
{
id: 'fillfactor', label: gettext('Fill factor'), type: 'int',
mode: ['create', 'edit'], min: 10, max: 100,
mode: ['properties', 'create', 'edit'], min: 10, max: 100,
group: 'advanced',
disabled: obj.isPartitioned,
},{
id: 'toast_tuple_target', label: gettext('Toast tuple target'), type: 'int',
mode: ['create', 'edit'], min: 128, min_version: 110000,
mode: ['properties', 'create', 'edit'], min: 128, min_version: 110000,
group: 'advanced',
disabled: obj.isPartitioned,
},{
id: 'parallel_workers', label: gettext('Parallel workers'), type: 'int',
mode: ['create', 'edit'], group: 'advanced', min_version: 90600,
mode: ['properties', 'create', 'edit'], group: 'advanced', min_version: 90600,
disabled: obj.isPartitioned,
},
{

View File

@@ -62,6 +62,17 @@ describe('TableSchema', () => {
await getPropertiesView(createTableSchemaObject(), getInitData);
});
it('storage parameters are shown in properties', () => {
// Fill factor, toast tuple target and parallel workers are shown in
// the dialog's Advanced tab, so the Properties panel should show
// them too (issue #9212).
['fillfactor', 'toast_tuple_target', 'parallel_workers'].forEach((id)=>{
const field = _.find(schemaObj.fields, (f)=>f.id==id);
expect(field.mode).toEqual(['properties', 'create', 'edit']);
expect(field.group).toBe('advanced');
});
});
it('getTableOid', () => {
schemaObj.inheritedTableList = [
{label: 'tab1', tid: 140391},