Skip to content

Unavoidable query failure on results containing arrays of multirange values #163

@nikita-volkov

Description

@nikita-volkov

postgresql-simple attempts to query the pg_range system catalog to determine the element subtype, as it treats multirange types as range-like types. However, multirange types (introduced in PostgreSQL 14) are not stored in pg_range, causing the query to fail with range subtype query failed to return exactly one result. This seems impossible to circumvent even with custom types, because the error is triggerred by PGArray.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions