fix(postgres): discover ordinary and materialized views - #769
Open
2160039878-cyber wants to merge 1 commit into
Open
fix(postgres): discover ordinary and materialized views#7692160039878-cyber wants to merge 1 commit into
2160039878-cyber wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
PostgreSQL ordinary and materialized views now appear with their columns in the existing schema explorer. Ordinary views use information_schema; materialized views supplement it from pg_class/pg_attribute because PostgreSQL excludes them from information_schema. Both fast and full schema reads remain single queries.
Closes #710.
Changes Made
Testing
bun run test:integration --isolate --pass-with-no-tests -t 'PostgresProvider': 195 passed, including existing compatibility fallbacks and new view discovery/error cases.format,lint,typecheck,knip,readme:check,chart:check,channels:showcase:check,security:check,build,build:lib,attw.c1a214fe0bb9e20620dddc6f6664a43bb2576a92.bun run test, coverage and app E2E were not run: this Windows host lacks Helm/chart dependencies and working Docker; existing SQLite cleanup also encounters Windows file locks. CI must verify the full suite and 100% line coverage.Environment: Windows, Node.js 24.18.1, Bun 1.4.2.
Checklist
Additional Notes
AI-assisted implementation and validation using Codex. Schema discovery performs catalog reads only. An unpopulated materialized view can be explored through its columns, but a data preview still requires a user-initiated REFRESH MATERIALIZED VIEW; the explorer never refreshes it automatically.