Commit e9948c7
authored
fix: resolve get_database_schema resource validation errors (#22)
Fixes SQL query validation errors when accessing database://schema resource with views.
- Fixed SQL query to use pg_class directly via LEFT JOINs instead of ::regclass
- Added obj_description, col_description, and shobj_description to SafeSqlDriver allowed functions
- Ensures database://schema resource works correctly with tables, views, and materialized views
Co-authored-by: shitalm <[email protected]>1 parent cf0044d commit e9948c7
File tree
2 files changed
+7
-1
lines changed- src/postgres_mcp
- resources
- sql
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
44 | 45 | | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
309 | 312 | | |
310 | 313 | | |
311 | 314 | | |
| |||
0 commit comments