Ensure that Materialized view size fields in Statistics should be human-readable. #6712

This commit is contained in:
Akshay Joshi
2023-09-06 11:31:04 +05:30
parent a43b70e360
commit 07d965ea46
2 changed files with 7 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ define('pgadmin.node.mview', [
type: 'coll-mview',
columns: ['name', 'owner', 'comment'],
hasStatistics: true,
statsPrettifyFields: [gettext('Total Size')],
canDrop: schemaChildTreeNode.isTreeItemOfChildOfSchema,
canDropCascade: schemaChildTreeNode.isTreeItemOfChildOfSchema,
});
@@ -66,6 +67,9 @@ define('pgadmin.node.mview', [
hasSQL: true,
hasDepends: true,
hasStatistics: true,
statsPrettifyFields: [gettext('Total Size'), gettext('Indexes size'), gettext('Table size'),
gettext('TOAST table size'), gettext('Tuple length'),
gettext('Dead tuple length'), gettext('Free space')],
hasScriptTypes: ['create', 'select'],
collection_type: 'coll-mview',
width: pgBrowser.stdW.md + 'px',