Re: Problem returning strings with pgsql 8.3.x

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Problem returning strings with pgsql 8.3.x
Дата
Msg-id 20080513063301.GA19436@svana.org
обсуждение исходный текст
Ответ на Problem returning strings with pgsql 8.3.x  ("Josh Tolley" <eggyknap@gmail.com>)
Ответы Re: Problem returning strings with pgsql 8.3.x  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, May 12, 2008 at 11:23:17PM -0600, Josh Tolley wrote:
>                                 SPI_push();
>                                         retval =
> InputFunctionCall(&flinfo, lolVarGetString(returnVal, true),
>  resultTypeIOParam, -1);
>                                 SPI_pop();

Won't this cause the return value to be allocated inside a new memory
block which gets freeds at the SPI_pop?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bryce Nesbitt
Дата:
Сообщение: Re: psql wrapped format default for backslash-d commands
Следующее
От: "Brendan Jurd"
Дата:
Сообщение: Re: psql wrapped format default for backslash-d commands