Skip to content

Commit 996c8a3

Browse files
pxsitveluca93
authored andcommitted
Ignore pg_attver column options in schema diff test
Ignore pg_attver column options in schema diff test
1 parent 9756a3a commit 996c8a3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎cmstestsuite/unit_tests/schema_diff_test.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ def split_schema(schema: str) -> list[list[str]]:
4040
or line.startswith("--")
4141
or line.startswith("\\restrict")
4242
or line.startswith("\\unrestrict")
43+
# Some PostgreSQL servers expose an internal per-column option
44+
# (pg_attver) that newer pg_dump clients print for every column;
45+
# it is not part of the schema we want to compare.
46+
or (line.startswith("ALTER TABLE ") and " SET (pg_attver=" in line)
4347
):
4448
continue
4549
cur_statement.append(line)

0 commit comments

Comments
 (0)