In short, why do you think it is better to create a new context rather than using "SPI Exec"?
{
....
querystr = pstrdup(querystr);
SPI_Execute --> inside this SPI_Exec context will be reset.
After this querystr is being used in this function.
}
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных