SPI_PALLOC(3)

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

✨ NAME ✨

SPI_palloc β€” allocate memory in the upper executor context πŸ’–

okay bestie, you're on the SPI_PALLOC(3) page from the PostgreSQL 15.19 documentation, and this one is short but iconic ✨


πŸŽ€ SYNOPSIS πŸŽ€

void * SPI_palloc(Size size)

πŸ¦‹ DESCRIPTION πŸ¦‹

SPI_palloc allocates memory in the upper executor context. That's the whole vibe 🫢

important: this function can only be used while connected to SPI. Otherwise, it throws an error β€” no cap, it will not play nice outside SPI 😭

🌸 ARGUMENTS 🌸

  • Size size β€” the size, in bytes, of the storage to allocate πŸ’…

πŸ‘‘ RETURN VALUE πŸ‘‘

a pointer to the new storage space of the specified size β€” slay ✨


mwah πŸ’‹ that's the whole page from the PostgreSQL 15.19 docs, dated 2026 β€” SPI_PALLOC(3), signing off 🫢

πŸ“¦ where this page comes from