SPI_GETRELNAME(3)
π SPI_GETRELNAME(3) β like, the relname page bestie β¨
okay so this is a page from the PostgreSQL 17.11 Documentation set, and it's filed under SPI_GETRELNAME(3) β yes, that's a section 3 manual page, we love a library-function moment π
πΈ NAME πΈ
SPI_getrelname β returns the name of the relation you point at, that's literally it, that's the whole vibe π¦
β¨ SYNOPSIS β¨
char * SPI_getrelname(Relation rel)
look at her go π one function, one argument, no drama.
π DESCRIPTION π
So SPI_getrelname returns a copy of the name of whatever relation you hand it. A copy, okay? Not a peek at the original β a whole separate copy, main character energy π₯
And because it's a copy, you get to pfree it when you're done with it and don't need the name anymore. Very demure, very "clean up after yourself" of you π§
fr fr though β if you don't pfree the copy once you're finished, that's on you, bestie π
π«Ά ARGUMENTS π«Ά
Relation relβ the input relation. the one whose name we're getting. the subject of the whole photoshoot πΈ
β RETURN VALUE β
The name of the specified relation. that's the answer. that's the tea βπ
and that's the page!! short and sweet, just like she should be π
cute little sign-off: this is PostgreSQL 17.11, dated 2026 β so when you cite it, you know exactly which era of Postgres you're living in ππ see u in the next manpage, mwah π
π¦ 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