SPI_REPALLOC(3)

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

✨ SPI_repalloc ✨

bestie, welcome to the SPI_repalloc(3) page from the PostgreSQL 14.24 Documentation β€” we’re doing upper-executor-context memory reallocation and it’s lowkey iconic πŸ’…


πŸ’– NAME πŸ’–

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 previously allocated using SPI_palloc. literally that’s the 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, periodt πŸ’€

πŸŽ€ ARGUMENTS πŸŽ€

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

πŸ‘‘ RETURN VALUE πŸ‘‘

pointer to new storage space of specified size with the contents copied from the existing area 🫢


that’s the whole page, bestie β€” xoxo from the PostgreSQL 14.24 docs, dated 2026 πŸŽ€βœ¨

πŸ“¦ where this page comes from