| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: SPI_exec doesn't return proc context (on 9.1) |
| Date: | 2011-02-10 22:23:35 |
| Message-ID: | 1297376539-sup-8672@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Excerpts from Pavel Stehule's message of sáb ene 29 16:56:40 -0300 2011:
> 2011/1/29 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> > The less crocky way to do that is to use SPI_palloc() for something that
> > should be allocated in the outer context.
>
> I understand. Is there some way, where I can use a cstring_to_text
> function? There isn't simple way to get a saveCtx.
>
> some like SPI_copyDatum ... ?
I wrote such a patch some time ago but never applied it ...
http://archives.postgresql.org/message-id/20091116162531.GA3669@alvh.no-ip.org
I still wonder if it's useful enough to be applied. Would it solve your
use case?
--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joshua D. Drake | 2011-02-10 22:34:31 | Debian readline/libedit breakage |
| Previous Message | David Fetter | 2011-02-10 22:22:27 | Re: [COMMITTERS] pgsql: Remove more SGML tabs. |