Excerpts from Pavel Stehule's message of sáb ene 29 16:56:40 -0300 2011: > 2011/1/29 Tom Lane <t...@sss.pgh.pa.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.ga3...@alvh.no-ip.org I still wonder if it's useful enough to be applied. Would it solve your use case? -- Álvaro Herrera <alvhe...@commandprompt.com> The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers