Skip to main content

pg_oid_alias_type

Function pg_oid_alias_type 

Source
fn pg_oid_alias_type(column: &ColumnSchema) -> Option<Type>
Expand description

Maps datafusion-pg-catalog OID-alias metadata to PostgreSQL wire types.

The catalog exposes static catalog aliases as Utf8 and dynamic aliases as Int32, so this must run before the ordinary INT4/VARCHAR fallbacks. The catalog crate only exposes named constants for the aliases it uses in dynamic catalog tables; keep the remaining aliases here for compatibility with its public OID_ALIAS_TYPE_NAMES contract. See https://github.com/datafusion-contrib/datafusion-postgres/issues/384.