You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose a SPI result's column metadata as parallel Arrays over its
columns, the counterparts of PL/Python's colnames / coltypes /
coltypmods:
- spi_colnames(result) -> Array of column names (Strings)
- spi_coltypes(result) -> Array of column type OIDs (Integers)
- spi_coltypmods(result)-> Array of column type modifiers (Integers)
Read from the result's tuple descriptor, skipping dropped columns. A
result with no tuple set (a non-SELECT, e.g. a plain INSERT) has no
columns, so each returns an empty Array -- consistent with spi_fetch_row,
which already only yields rows for SELECT results.
New sql/colmeta test; full suite green on PG 12 and 18.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments