Re: Re: multi recordset and data type check was: Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Vladimir Dzhuvinov <vd(at)valan(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: multi recordset and data type check was: Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?
Date: 2008-10-15 21:53:55
Message-ID: 200810152153.m9FLrtv19775@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Vladimir Dzhuvinov wrote:
-- Start of PGP signed section.
> Hi Ivan,
>
> > It seems anyway that the usefulness of this feature largely depends
> > on the language library.
> > eg. I can't see a way to support it with php right now but it is
> > supported by python.
> > Am I missing something?
>
> Yes, the client library will have to support multiple result sets too.
>
> For example, the PHP MySQLi lib does that by providing functions to
> check for and retrieve outstanding result sets in the buffer:
>
> bool mysqli_more_results ($link)
>
> bool mysqli_next_result ($link)
>
>
> It seems like the PHP PG binding does allow (?) retrieval of multiple
> result sets through pg_get_result(), but only for requests issued
> asynchronously:
>
> http://bg2.php.net/manual/en/function.pg-get-result.php
>
>
> > Out of curiosity, what language are you using?
>
> For MySQL I've been mostly using PHP, occasionally Java, Python and C.

Interesting. I think we need to decide if we want a TODO for this.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message salman Sheikh 2008-10-15 22:18:58 ADO TO ODBC
Previous Message Bruce Momjian 2008-10-15 21:48:31 Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?