Skip to content

Conversation

@jasonyb
Copy link

@jasonyb jasonyb commented May 6, 2025

Test 004_pg_dump_parallel.pl was introduced by commit 2b216da, which states that it teaches pg_dump to apply load-via-partition-root automatically when detecting hash-on-enum partitioning. For some reason, importing commit 96a81c1 causes this detection to stop working. This causes the test to fail.

Given YB backup/restore usually uses --include-yb-metadata which causes enum oids and sort orders to be preserved, YB doesn't really need load-via-partition-root nor the automatic detection. Therefore, ignore the failing auto detection for now and just fix the test by manually passing --load-via-partition-root to pg_dump. In the future, this issue will naturally go away as YB merges to future versions beyond 96a81c1. At that point, this test change should be discarded.

Test 004_pg_dump_parallel.pl was introduced by commit
2b216da, which states that it teaches
pg_dump to apply load-via-partition-root automatically when detecting
hash-on-enum partitioning.  For some reason, importing commit
96a81c1 causes this detection to stop
working.  This causes the test to fail.

Given YB backup/restore usually uses --include-yb-metadata which causes
enum oids and sort orders to be preserved, YB doesn't really need
load-via-partition-root nor the automatic detection.  Therefore, ignore
the failing auto detection for now and just fix the test by manually
passing --load-via-partition-root to pg_dump.  In the future, this issue
will naturally go away as YB merges to future versions beyond
96a81c1.  At that point, this test
change should be discarded.
@jasonyb jasonyb requested a review from hari90 May 6, 2025 20:06
@jasonyb jasonyb merged commit 01f94ab into yugabyte:yb-pg15 May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants