SPI_GETNSPNAME(3)
π SPI_GETNSPNAME(3) π
okay so bestie, welcome to the PostgreSQL 15.19 Documentation corner of the group chat π«Ά. This icon is here to hand you the namespace name for a relation, and she's serving copy, not a borrowed pointer. More below, iykyk β¨
πΈ NAME πΈ
SPI_getnspname β return the namespace of the specified relation π
β¨ SYNOPSIS β¨
char * SPI_getnspname(Relation rel)
π¦ DESCRIPTION π¦
SPI_getnspname returns a copy of the name of the namespace that the specified Relation belongs to. This is equivalent to the relation's schema, periodt. When you're finished with the return value of this function, you should pfree it β like, actually do it, bestie π
.
π ARGUMENTS π
Relation relβ input relation π«Ά
β RETURN VALUE β
The name of the specified relation's namespace β¨
mwah π this page is from PostgreSQL 15.19 and dated 2026 β now go pfree that string when you're done, periodt π«Άπ
π¦ 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