SPI_PFREE(3)

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

✨ NAME ✨

SPI_pfree β€” free memory in the upper executor context, bestie πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

void SPI_pfree(void * pointer)

🌸 DESCRIPTION 🌸

Okay so SPI_pfree frees memory that was previously allocated using SPI_palloc or SPI_repalloc. That’s the whole main character move ✨

Lowkey important lore: this function is no longer different from plain pfree. It’s kept just for backward compatibility of existing code. Not me finding out it’s basically here for the legacy besties 😭 periodt.

πŸŽ€ ARGUMENTS πŸŽ€

  • void * pointer β€” pointer to existing storage to free. That’s it, that’s the vibe 🫢

Cute sign-off moment: this page is serving PostgreSQL 15.19 documentation, dated 2026, and the manual is SPI_PFREE(3). Bye bestie, go free that memory responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from