Module pgx::tupdesc

source ·
Expand description

Provides a safe wrapper around Postgres’ pg_sys::TupleDescData struct

Structs

  • This struct is passed around within the backend to describe the structure of tuples. For tuples coming from on-disk relations, the information is collected from the pg_attribute, pg_attrdef, and pg_constraint catalogs. Transient row types (such as the result of a join query) have anonymous TupleDesc structs that generally omit any constraint info; therefore the structure is designed to let the constraints be omitted efficiently.

Functions