SPI_REPALLOC(3)

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

πŸ’– NAME πŸ’–

okay bestie, we're in the PostgreSQL 18.6 Documentation and this lil page is SPI_REPALLOC(3) ✨

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. that's the whole vibe πŸ’«

This function is no longer different from plain repalloc. It's kept just for backward compatibility of existing code. no cap, it's giving legacy support πŸ‘‘


🌸 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 🌈


okay that's the whole page bestie! this came from PostgreSQL 18.6, dated 2026 β€” love u, bye! πŸ’…πŸ’–

πŸ“¦ where this page comes from