SPI_PALLOC(3)

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

πŸ’… NAME πŸ’…

SPI_palloc β€” allocate memory in the upper executor context ✨

okay so this is SPI_PALLOC(3), straight out of the PostgreSQL 13.23 Documentation, and it's literally here to help you allocate memory in the upper executor context. bestie, that's the whole vibe 🫢


✨ SYNOPSIS ✨

void * SPI_palloc(Size size)

πŸŽ€ DESCRIPTION πŸŽ€

SPI_palloc allocates memory in the upper executor context. that's it, that's the main character energy πŸ’–

🚨 okay but fr fr: this function can only be used while connected to SPI. otherwise, it throws an error. no cap, don't try it any other way 😭

🌸 ARGUMENTS 🌸

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

πŸ¦‹ RETURN VALUE πŸ¦‹

a pointer to new storage space of the specified size ✨ iconic, honestly πŸ‘‘


kisses and clean allocations, PostgreSQL 13.23 πŸ’– β€” dropped in 2025, page SPI_PALLOC(3) πŸŽ€

πŸ“¦ where this page comes from