SPI_REGISTER_RELATION(3pg17)
β¨ NAME β¨
Okay bestie, welcome to SPI_REGISTER_RELATION(3) from the PostgreSQL 17.11 Documentation π β this page is literally about SPI_register_relation: make an ephemeral named relation available by name in SPI queries. Slay.
πΈ SYNOPSIS πΈ
int SPI_register_relation(EphemeralNamedRelation enr)
π¦ DESCRIPTION π¦
So SPI_register_relation makes an ephemeral named relation β with all its associated information β available to queries that are planned and executed through the current SPI connection. Itβs giving βregistry entry, but make it query-visibleβ β¨.
π ARGUMENTS π
EphemeralNamedRelation enrβ the ephemeral named relation registry entry. Thatβs the whole argument, bestie π«Ά.
π RETURN VALUE π
If the execution of the command was successful, then this nonnegative value gets returned:
SPI_OK_REL_REGISTERβ if the relation has been successfully registered by name π.
On error, one of these negative values is returned:
SPI_ERROR_ARGUMENTβ ifenrisNULLor itsnamefield isNULLπ.SPI_ERROR_UNCONNECTEDβ if called from an unconnected C function π.SPI_ERROR_REL_DUPLICATEβ if the name specified in thenamefield ofenris already registered for this connection π.
Negative return values mean error vibes, periodt. Nonnegative means success β no cap.
mwah π β from the PostgreSQL 17.11 docs, dated 2026, page SPI_REGISTER_RELATION(3). Bye bestie! ππ¦π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-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