pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Doug Thom <dthom@iagr.net>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Brio returning data through stored procedures.
Date: Fri, 06 Apr 2007 13:27:25 -0400
Message-ID: <14927.1175880445@sss.pgh.pa.us> (raw)
In-Reply-To: <A9D51A18173BD043BC843DAFB9CA48EC9A7A0D@VMAIL.iagr.net>
References: <A9D51A18173BD043BC843DAFB9CA48EC9A79F4@VMAIL.iagr.net>
	<4615915B.2000305@yucaipaco.com>
	<46165001.9070608@gmx.net>
	<A9D51A18173BD043BC843DAFB9CA48EC9A7A06@VMAIL.iagr.net>
	<46167241.7020103@yucaipaco.com>
	<A9D51A18173BD043BC843DAFB9CA48EC9A7A0D@VMAIL.iagr.net>

"Doug Thom" <dthom@iagr.net> writes:
> So I would be doing something like:

> --Do the thing that builds the query.
> Select query
>   Into query-string
>   From table-that-has-query;

> Open cursor for query-string;

> Return cursor;
> --End pseudo code

I think you're looking for OPEN cursor FOR EXECUTE in plpgsql.
See the "cursor operations" part of the plpgsql manual.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <14927.1175880445@sss.pgh.pa.us>
Permalink:  ../14927.1175880445@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14927.1175880445@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dthom@iagr.net
  Subject: Re: Brio returning data through stored procedures.
  In-Reply-To: <14927.1175880445@sss.pgh.pa.us>
  References: <A9D51A18173BD043BC843DAFB9CA48EC9A79F4@VMAIL.iagr.net> <4615915B.2000305@yucaipaco.com> <46165001.9070608@gmx.net> <A9D51A18173BD043BC843DAFB9CA48EC9A7A06@VMAIL.iagr.net> <46167241.7020103@yucaipaco.com> <A9D51A18173BD043BC843DAFB9CA48EC9A7A0D@VMAIL.iagr.net> <14927.1175880445@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox