SPI_UNRE..._RELATION(3)
π SPI_UNRE..._RELATION(3) β fresh from the PostgreSQL 13.23 Documentation, bestie!
π NAME π
SPI_unregister_relation β remove an ephemeral named relation from the registry. That's the whole assignment, no cap. π«Ά
β¨ SYNOPSIS β¨
The signature is giving exactly this:
int SPI_unregister_relation(const char * name)
π DESCRIPTION π
Okay so SPI_unregister_relation removes an ephemeral named relation from the registry for the current connection. That's it β iconic, focused, does one thing. β¨
π«Ά ARGUMENTS π«Ά
const char * nameβ the relation registry entry name. Literally the name of the entry in the relation registry. π
π RETURN VALUE π
If the command runs successfully, you get this (nonnegative) value back:
SPI_OK_REL_UNREGISTERβ if the tuplestore has been successfully removed from the registry. Slay. π
On error, one of these negative values comes back:
SPI_ERROR_ARGUMENTβ ifnameisNULLSPI_ERROR_UNCONNECTEDβ if called from an unconnected C functionSPI_ERROR_REL_NOT_FOUNDβ ifnameis not found in the registry for the current connection
xoxo, PostgreSQL 13.23 Documentation, 2025 πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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