From 041f40ef90d803ed9a996746189cd117d285753a Mon Sep 17 00:00:00 2001 From: Pasit Sangprachathanarak Date: Sun, 15 Nov 2026 16:30:27 +0700 Subject: [PATCH] Ignore pg_attver column options in schema diff test Ignore pg_attver column options in schema diff test --- cmstestsuite/unit_tests/schema_diff_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmstestsuite/unit_tests/schema_diff_test.py b/cmstestsuite/unit_tests/schema_diff_test.py index eceb42489d..d6cdad971e 100644 --- a/cmstestsuite/unit_tests/schema_diff_test.py +++ b/cmstestsuite/unit_tests/schema_diff_test.py @@ -40,6 +40,10 @@ def split_schema(schema: str) -> list[list[str]]: or line.startswith("--") or line.startswith("\\restrict") or line.startswith("\\unrestrict") + # Some PostgreSQL servers expose an internal per-column option + # (pg_attver) that newer pg_dump clients print for every column; + # it is not part of the schema we want to compare. + or (line.startswith("ALTER TABLE ") and " SET (pg_attver=" in line) ): continue cur_statement.append(line)