SPI_REPALLOC(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to the SPI_REPALLOC(3) page πŸ’… this one is about SPI_repalloc β€” literally β€œreallocate memory in the upper executor context.” slay.

✨ SYNOPSIS ✨

void * SPI_repalloc(void * pointer, Size size)

🌸 DESCRIPTION 🌸

so SPI_repalloc changes the size of a memory segment that was previously allocated using SPI_palloc. that’s the whole vibe ✨

and here’s the important part, no cap: this function is no longer different from plain repalloc. it’s kept just for backward compatibility of existing code. iconic for the legacy besties, honestly 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • void * pointer β€” pointer to existing storage to change. that’s your β€œplease resize this” pointer πŸŽ€
  • Size size β€” size in bytes of storage to allocate. yes, bytes, bestie πŸ”’

πŸ¦‹ RETURN VALUE πŸ¦‹

returns a pointer to new storage space of specified size with the contents copied from the existing area. so your data comes along for the ride, periodt πŸ’–


mwah πŸ’‹ this cutie page comes from the PostgreSQL 17.11 Documentation, dated 2026 β€” and it’s the SPI_REPALLOC(3) page signing off 🫢✨

πŸ“¦ where this page comes from