SPI_GETRELNAME(3)
β¨ SPI_GETRELNAME(3) β¨
ok so this is a PostgreSQL 13.23 Documentation page, bestie β it lives in section 3 of the manual (that's the library-calls girlies π
), and it's all about SPI_getrelname. buckle up, it's short but it slays.
πΈ NAME πΈ
SPI_getrelname β returns the name of the specified relation π
π¦ SYNOPSIS π¦
char * SPI_getrelname(Relation rel)
like, that's the whole signature. no cap. π
π DESCRIPTION π
ok so SPI_getrelname returns a copy of the name of the specified relation. yes, a copy β she's not handing you a pointer into the original, she made you your own little souvenir π
and because it's a copy, you can totally use pfree to release it when you don't need the name anymore. literally just clean up after yourself, bestie π§Ήβ¨
ngl, the whole "it's a copy" thing is the main character detail here β don't forget to pfree it or you're gonna be leaking memory and that's not the vibe π
π ARGUMENTS π
Relation relβ the input relation π«Ά (that's the one whose name you're tryna get)
β RETURN VALUE β
the name of the specified relation. that's it, that's the tea ππ
and that's the whole page, bestie β no hidden options, no sneaky environment variables, no exit statuses, she's a short one and we love her for it π
ok bye ily, this page was brought to you by PostgreSQL 13.23, dated 2025 β see u in the next manpage, mwah ππ
π¦ 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