SPI_REGISTER_RELATION(3pg15)
π NAME π
okay so bestie, welcome to the SPI_REGISTER_RELATION(3) page β and the whole serve is this: SPI_register_relation makes an ephemeral named relation available by name in SPI queries. that's the name tea ββ¨
πΈ SYNOPSIS πΈ
int SPI_register_relation(EphemeralNamedRelation enr)
π¦ DESCRIPTION π¦
SPI_register_relation makes an ephemeral named relation β with all its associated information β available to queries planned and executed through the current SPI connection. it's giving βput this name on the guest list so your SPI queries can use itβ π
π ARGUMENTS π
EphemeralNamedRelation enrβ the ephemeral named relation registry entry. that's the registry entry you're handing over, bestie π«Ά
β¨ RETURN VALUE β¨
if the execution of the command was successful, you get this nonnegative value back:
SPI_OK_REL_REGISTERβ if the relation has been successfully registered by name. slay β
on error, one of these negative values comes back instead:
SPI_ERROR_ARGUMENTβ ifenrisNULLor itsnamefield isNULLSPI_ERROR_UNCONNECTEDβ if called from an unconnected C functionSPI_ERROR_REL_DUPLICATEβ if the name specified in thenamefield ofenris already registered for this connection
and that's the page, bestie π«Ά this was the PostgreSQL 15.19 documentation, dated 2026, for SPI_REGISTER_RELATION(3) β mwah π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15-docs 15.19-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms