Title: Name an extension used through an array or a domain in the data copy preflight (S-007-7) by shipmill-romamo[bot] · Pull Request #176 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Name an extension used through an array or a domain in the data copy preflight (S-007-7) by shipmill-romamo[bot] · Pull Request #176 · cloudfall-dev/cloudfall
X Title: Name an extension used through an array or a domain in the data copy preflight (S-007-7) by shipmill-romamo[bot] · Pull Request #176 · cloudfall-dev/cloudfall
Description: Summary Issue #173, item 1. The data copy preflight's needed CTE matched an extension only when a selected object depends directly on one of its members (pg_depend, deptype = 'e'). A citext[] column depends on the array type _citext, and _citext depends on citext with deptype = 'i', not on the extension. So citext was neither reported under extensions (S-007-7) nor passed to pg_dump --extension. The same gap hit a column of a domain over citext when the domain lives outside the selected schemas. The fix adds a recursive referenced(classid, objid) CTE. It starts from every object a selected object depends on, then walks each type to its array element type (typcategory = 'A', typelem) and to its domain base type (typtype = 'd', typbasetype), chained. Only then does it match extension members. This is still the one query that feeds both the extensions finding and the --extension list; it only gains WITH RECURSIVE. Names still arrive only as psql variables, and the shape of the finding lists is unchanged. Out of scope, moved to #175: extensions installed in an unselected schema, and auth. references in foreign keys, defaults and views. Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_data_migration/defaults/main.yml, engine/tests/test_data_migration_role.py, changelog.d/173-preflight-extension-arrays.md Order: the failing test first (a citext[] column and a domain over citext must name citext), then the needed CTE follows array element and domain base types before matching extension members Proof: test_s007_7_an_array_or_domain_of_an_extension_type_names_it fails on main and passes after (S-007-7); ruff, mypy, ansible-lint and the touched test files pass Test notes New test_s007_7_an_array_or_domain_of_an_extension_type_names_it (rendered SQL): fails on main, passes here uv run pytest engine/tests/test_data_migration_role.py sdk/tests/test_data_copy_preflight.py: 28 passed uv run ruff check ., uv run mypy, and ANSIBLE_CONFIG=engine/ansible/ansible.cfg uv run ansible-lint engine/ansible (as CI runs it) all pass Live check, outside the suite: I ran both main's query and this branch's query on a throwaway PostgreSQL 16.2 (the pgserver wheel), with schema app selected and the extension installed in an unselected schema. That build has no contrib, so pgvector's vector stood in for citext; it has the same shape, an extension base type with an implicit array type. Results: app.t column main branch vector ["vector"] ["vector"] vector[] [] ["vector"] domain over vector [] ["vector"] domain over that domain [] ["vector"] array of that domain [] ["vector"] integer[] [] [] The full suite is left to CI Fixes #173 🤖 Generated with Claude Code
Open Graph Description: Summary Issue #173, item 1. The data copy preflight's needed CTE matched an extension only when a selected object depends directly on one of its members (pg_depend, deptype = 'e'). A ci...
X Description: Summary Issue #173, item 1. The data copy preflight's needed CTE matched an extension only when a selected object depends directly on one of its members (pg_depend, deptype = 'e&...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/176
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ec171021-f191-f9b1-1339-be9e0d5589e5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9512:36E50:27B589E:343BBC3:6B055BAD |
| html-safe-nonce | d825d5f4517e71b5eeed0a3cef3ee303602f134eaedf6fbb0417d3819ec5fb77 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTEyOjM2RTUwOjI3QjU4OUU6MzQzQkJDMzo2QjA1NUJBRCIsInZpc2l0b3JfaWQiOiIyNjQ2NDkwMzEwNTAyNjAzNjkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7708f3cc1b418d317b6cff1cb6a47ceda628b043f91f7b340865e7a6a226fff |
| hovercard-subject-tag | pull_request:5086531410 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/176/files |
| twitter:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| og:image:alt | Summary Issue #173, item 1. The data copy preflight's needed CTE matched an extension only when a selected object depends directly on one of its members (pg_depend, deptype = 'e'). A ci... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width