From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
---|---|
To: | James Harper <james(dot)harper(at)bendigoit(dot)com(dot)au> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: multiple results from a function |
Date: | 2014-03-03 15:13:16 |
Message-ID: | CAHyXU0wHozNz7f57dT1hsP=Ag7gdWoPcnK=Jd-r7z_Df4eC9tg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Feb 27, 2014 at 6:23 PM, James Harper
<james(dot)harper(at)bendigoit(dot)com(dot)au> wrote:
> I see that I can use PQgetResult to get results from an async query, and this allows for multiple results, presumably when the query is like "SELECT 123, 456; SELECT 'ABC', 'DEF';". Is there a way for a C function, using SPI, to send result sets without waiting for completion and returning a potentially huge set of results right at the end of the function?
>
> Failing that, is there a way for a C function to send to STDOUT in the same way that a COPY (...) TO STDOUT would?
Why does this have to be an SPI function? Maybe a little more context
here would help.
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-03-03 15:25:58 | Re: Why is varchar_pattern_ops needed? |
Previous Message | Albe Laurenz | 2014-03-03 10:06:55 | Why is varchar_pattern_ops needed? |