SPI_REPALLOC(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to SPI_REPALLOC(3) β€” the PostgreSQL 16.15 docs page for SPI_repalloc β€” reallocate memory in the upper executor context ✨

✨ SYNOPSIS ✨

void * SPI_repalloc(void * pointer, Size size)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so SPI_repalloc changes the size of a memory segment that was previously allocated using SPI_palloc. That's the whole gig 🫢

and here's the tea: this function is no longer different from plain repalloc. It's kept just for backward compatibility of existing code. periodt πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • void * pointer β€” pointer to existing storage to change. like, the storage you're resizing, bestie πŸ“
  • Size size β€” size in bytes of storage to allocate. the new size in bytes, slay ✨

🌸 RETURN VALUE 🌸

You get back a pointer to new storage space of specified size, with the contents copied from the existing area. iconic πŸ’–


PostgreSQL 16.15 Β· 2026 β€” that's the source/version and date, bestie; now go resize responsibly πŸ’…πŸŽ€

πŸ“¦ where this page comes from