SPI_GETRELNAME(3)

πŸ“¦ version 17.11, in opensuse-leap 16.0

πŸ’… 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