Jacob Rief wrote: > char *SPI_psprintf(const char *fmt, ...); > allocates a block of memory out of the memory pool and prints a > formatted string into it
Such matters are best solved using the StringInfo API. > SPI_pstrdup(const char *src); > allocates a block of memory out of the memory pool and copies an > existing string into it. How is that different from pstrdup()? -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster