SPI_GETNSPNAME(3)

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

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