Skip to main content

register_pg_catalog_compat

Function register_pg_catalog_compat 

Source
fn register_pg_catalog_compat(ctx: &SessionContext)
Expand description

Register the session-level (not function-registry) Postgres-compatibility extension sourced from datafusion-pg-catalog: widen Postgres int4 bounds to int8 for generate_series/range (their stock implementations require int8 literals, and DF invokes them at planning time, before any analyzer rule can run).

The oid-alias type planner is supplied per SQL-planner context by DfContextProviderAdapter::get_type_planner. Forward oid-alias name->oid resolution is handled at SQL-parse time by the PostgresCompatibilityParser’s built-in rewrite rule, not here.