Commit 0b45483
committed
fix: remove pg_catalog prefix for unknown types in deparser
- Remove 'pg_catalog.' prefix from getPgCatalogTypeName() default case
- Remove 'pg_catalog.bpchar' fallback, use just 'bpchar'
- Remove 'pg_catalog.float4' for real type, use just 'float4'
This fixes issues with extension types like citext, hstore, ltree, etc.
that don't live in pg_catalog but in the schema where the extension
is installed (typically public).
PostgreSQL automatically searches pg_catalog first via the implicit
search_path, so explicit qualification is unnecessary for built-in
types and incorrect for extension types.
Fixes: constructive-io/constructive-planning#4771 parent a1fd1b0 commit 0b45483
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2199 | 2199 | | |
2200 | 2200 | | |
2201 | 2201 | | |
2202 | | - | |
| 2202 | + | |
2203 | 2203 | | |
2204 | 2204 | | |
2205 | 2205 | | |
| |||
2213 | 2213 | | |
2214 | 2214 | | |
2215 | 2215 | | |
2216 | | - | |
| 2216 | + | |
2217 | 2217 | | |
2218 | 2218 | | |
2219 | 2219 | | |
| |||
2223 | 2223 | | |
2224 | 2224 | | |
2225 | 2225 | | |
2226 | | - | |
| 2226 | + | |
2227 | 2227 | | |
2228 | 2228 | | |
2229 | 2229 | | |
| |||
0 commit comments