From: | Clodoaldo <clodoaldo(dot)pinto(dot)neto(at)gmail(dot)com> |
---|---|
To: | "PostgreSQL - General ML" <pgsql-general(at)postgresql(dot)org> |
Subject: | Multiple result sets |
Date: | 2008-06-01 18:44:45 |
Message-ID: | a595de7a0806011144n36c59e48n92384ff707b4b54@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I need that 5 queries, fired from the same ajax request to a web
python application, see the same database snapshot. The driver is
psycopg2.
Since postgresql 8.2 functions can't return multiple result sets what
would be the best aproach?
All 5 queries return 2 columns but they are different types in each
query. I could just do a union casting everything to text, adding one
column identifying each query and then recast when receiving the
result set. But that could be costly (i guess the union is) and not
elegant at all. Those queries will fill select boxes and the ajax
refresh should be very fast.
Regards, Clodoaldo Pinto Neto
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-06-01 18:50:55 | Re: Multiple result sets |
Previous Message | Tino Wildenhain | 2008-06-01 08:34:28 | Re: Defining character sets for indicidual fields |