SPI_REPALLOC(3)

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

okay bestie, this is the SPI_REPALLOC(3) page from the PostgreSQL 13.23 docs, and we're gonna make it make sense πŸ’…

✨ NAME ✨

SPI_repalloc β€” reallocate memory in the upper executor context 🫢

🌸 SYNOPSIS 🌸

void * SPI_repalloc(void * pointer, Size size)

πŸ’– DESCRIPTION πŸ’–

SPI_repalloc changes the size of a memory segment previously allocated using SPI_palloc. literally that's the whole vibe.

and here's the tea: this function is no longer different from plain repalloc. It's kept just for backward compatibility of existing code. so if you see it out there, that's why β€” iconic but legacy πŸ‘‘

πŸŽ€ ARGUMENTS πŸŽ€

  • void * pointer β€” pointer to existing storage to change
  • Size size β€” size in bytes of storage to allocate

πŸ¦‹ RETURN VALUE πŸ¦‹

returns a pointer to new storage space of the specified size, with the contents copied from the existing area ✨


bestie, that's the page: PostgreSQL 13.23, 2025, and we're out πŸ’–

πŸ“¦ where this page comes from