describe_resultset
describe_resultset · PostgreSQL extension to show names, data types, and attributes of columns in an arbitrary result set
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101333 | describe_resultset | describe_resultset | 1.0.0 | UTIL | MIT | C |
Usage
Sources:
- Official upstream README
- Official extension control file (describe_resultset.control)
- Official extension SQL (describe_resultset–1.0.0.sql)
describe_resultset — This Postgres extension implements the “describe a result set” functionality, which, given a query or another PostgreSQL command that returns a result set, shows a list of columns in that result set, along with their respective data types and, possibly, other attributes. Use it for the corresponding SQL or database utility workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
describe_resultset(cmd TEXT)is an extension function and returnsTABLE.describe_resultset_internal(cmd TEXT)is an extension function and returnsSETOF.describe_resultset_datais an extension-defined type.
Requirements and Caveats
- The reviewed control file declares default version
1.0.0. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.