Re: cursors and sessions - Mailing list pgsql-sql

From Aaron Bono
Subject Re: cursors and sessions
Date
Msg-id bf05e51c0803131604k1dcebe8fo574cd218a3cd3e07@mail.gmail.com
Whole thread Raw
In response to cursors and sessions  (chester c young <chestercyoung@yahoo.com>)
List pgsql-sql
On Thu, Mar 13, 2008 at 5:54 PM, chester c young <<a
href="mailto:chestercyoung@yahoo.com">chestercyoung@yahoo.com</a>>wrote:<br /><div class="gmail_quote"><blockquote
class="gmail_quote"style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> is
thereany way to share a cursor between sessions?<br /><br /> I have a costly query whose records need to be visited by
inorder by n<br /> number of concurrent sessions, and am unable to find the best way of<br /> doing this.<br /><br />
I'dalmost like to write a daemon that hands out the next record, but<br /> that's a royal pain to set up and
maintain.<br/><a href="http://tools.search.yahoo.com/newsearch/category.php?category=shopping" target="_blank"></a><br
/></blockquote></div><br/>Why not pump your data into a table that mirrors the cursor and then create a function that
popsitems off the top of this queuing table as needed by the different sessions?<br clear="all" /><br />-- <br
/>==================================================================<br/> Aaron Bono<br /> Aranya Software
Technologies,Inc.<br /><a href="http://www.aranya.com">http://www.aranya.com</a><br /><a
href="http://codeelixir.com">http://codeelixir.com</a><br/>
================================================================== 

pgsql-sql by date:

Previous
From: chester c young
Date:
Subject: cursors and sessions
Next
From: Aarni Ruuhimäki
Date:
Subject: Re: Counting days ...