Fixed an issue where schema diff is showing identical table as different due to default vacuum settings. Fixes #5826

This commit is contained in:
Akshay Joshi
2020-09-24 13:24:25 +05:30
parent c1d04747a1
commit 68588fbb44
6 changed files with 21 additions and 4 deletions

View File

@@ -22,7 +22,8 @@ class SchemaDiffTableCompare(SchemaDiffObjectCompare):
table_keys_to_ignore = ['oid', 'schema', 'edit_types', 'attnum',
'col_type', 'references', 'reltuples', 'oid-2',
'rows_cnt', 'seqrelid', 'atttypid', 'elemoid',
'hastoasttable', 'relhassubclass', 'relacl_str']
'hastoasttable', 'relhassubclass', 'relacl_str',
'setting']
constraint_keys_to_ignore = ['relname', 'nspname', 'parent_tbl',
'attrelid', 'adrelid', 'fknsp', 'confrelid',

View File

@@ -351,7 +351,7 @@ class ViewNode(PGChildNodeView, VacuumSettings, SchemaDiffObjectCompare):
{'get': 'get_toast_table_vacuum'}]
})
keys_to_ignore = ['oid', 'schema', 'xmin', 'oid-2']
keys_to_ignore = ['oid', 'schema', 'xmin', 'oid-2', 'setting']
def __init__(self, *args, **kwargs):
"""