Re: Return cursor

From: "Sergey E(dot) Volkov" <sve(at)raiden(dot)bancorp(dot)ru>
To: pgsql-general(at)postgresql(dot)org(dot)pgsql-sql(at)postgresql(dot)org
Subject: Re: Return cursor
Date: 2001-05-24 09:39:54
Message-ID: 9eindi$t2p$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Hi Alla,

"Alla" <alla(at)sergey(dot)com> ???????/???????? ? ???????? ?????????:
news:9275d56e(dot)0105231020(dot)6bc24751(at)posting(dot)google(dot)com(dot)(dot)(dot)
> I am porting our database from Oracle to PostgreSQL
>
> I know quite a lot about Oracle and pretty much nothing about
> PostgreSQL :-))
>
> I have a lot of stored procedures in Oracle that return result sets or
> cursor. All I have to do there is open a cursor and calling
> application can just fetch it

Hmm ... As I know ( fix mee ) Oracle's functions ( procedures ) never return
result sets but ref cursor.

>
> Is there anyway to do the same thing in PostgreSQL?

PostgreSQL doesn't allow to return cursors from stored procedures.
If you want to deal with cursor, just open it in your application.

( See manuals for syntax )

>
> Please, help. So far I could not find anything
>
> Thanks a lot in advance for any help you can provide
>
>
>
/***************************************************************************
*/
> Alla Gribov
> alla(at)sergey(dot)com
> The greatest programming project of all took six days. On the seventh
> day the programmer rested. We've been trying to debug the thing ever
> since. Moral: design before you implement.
>
/***************************************************************************
*/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2001-05-24 10:07:05 Re: Odd "INSERT" Problems with PostgreSQL - Do YOU know?
Previous Message Jason 2001-05-24 08:21:37 Odd "INSERT" Problems with PostgreSQL - Do YOU know?

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Ruprecht 2001-05-24 12:08:29 Stored Procedures?
Previous Message Ron Peterson 2001-05-24 03:36:09 Re: Recursive select