From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Adding 'crosstab' variants returning refcursor? |
Date: | 2014-09-01 11:42:32 |
Message-ID: | CAFj8pRAyK5njjZCpsUWfJDfsypi+Sm_BFhnLiumJwaTYzR5qAQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi
2014-09-01 13:08 GMT+02:00 Craig Ringer <craig(at)2ndquadrant(dot)com>:
> Hi all
>
> Before I have a go at hacking it together I wanted to check: Has anyone
> explored modifying crosstab to return a refcursor, so you can FETCH the
> results w/o having to specify an explicit result type/descriptor?
>
+1
>
> Consuming the input in another query is more of a pain, but it'd be
> infinitely nicer when you just want the results in a client.
>
I wrote proof concept
http://okbob.blogspot.cz/2008/08/using-cursors-for-generating-cross.html
Regards
Pavel
>
> --
> Craig Ringer http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2014-09-01 11:50:50 | Re: Decoding of (nearly) empty transactions and regression tests |
Previous Message | Pavel Stehule | 2014-09-01 11:40:01 | Re: PL/pgSQL 2 |