Re: cursors and sessions

Поиск
Список
Период
Сортировка
От Aaron Bono
Тема Re: cursors and sessions
Дата
Msg-id bf05e51c0803131604k1dcebe8fo574cd218a3cd3e07@mail.gmail.com
обсуждение исходный текст
Ответ на cursors and sessions  (chester c young <chestercyoung@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: chester c young
Дата:
Сообщение: cursors and sessions
Следующее
От: Aarni Ruuhimäki
Дата:
Сообщение: Re: Counting days ...