Skip to content

2.23.1.1500-b11

Summary:
Get test TestYsqlUpgrade.creatingSystemRelsIsLikeInitdb to pass by doing the following:

- fix the definition of 'pg_class_2' to match 'pg_class' (collation on reloptions and relpartbound columns were missing).
- With PG commit d25f519107bff602e1ebc81853fe592d020c118d, pg_class.relfrozenxid and pg_class.relminmxid fields are populated by table_relation_set_new_filenode(). This function is not executed for YB relations, as a result, these fields are set to InvalidOid. But the bootstrap relations (the ones present in pg_class.dat), use the default values for these fields as defined in pg_class.h. Make adjustments to take into account this expected mismatch.

Test Plan:
Jenkins: rebase: pg15, test regex: TestYsqlUpgrade*

   ./pg15_tests/test_lint.sh
   for _ in {1..50}; do grep 'creatingSystemRelsIsLikeInitdb' pg15_tests/passing_tests.tsv; done | pg15_tests/run_tests.sh

Reviewers: jason, fizaa

Reviewed By: fizaa

Differential Revision: https://phorge.dev.yugabyte.com/D37840
Assets 2
Loading