Re: setFetchSize
| От | Oliver Jowett |
|---|---|
| Тема | Re: setFetchSize |
| Дата | |
| Msg-id | CA+0W9LOF3VN72OhmsJdQyT0AWyXUxUcBBJRgDpzOK=zeYSX9xg@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: setFetchSize (John R Pierce <pierce@hogranch.com>) |
| Список | pgsql-jdbc |
On 26 October 2011 19:37, John R Pierce <pierce@hogranch.com> wrote: > On 10/25/11 11:09 PM, fschmidt wrote: >> >> Okay I see the documentation saying portals die at the end of a >> transaction, >> here: > > I'm surprised you can make /any/ other queries on that connection with an > unfinished portal. > > I'm pretty sure if I needed to have an open transfer while executing another > transaction, I'd use more than one connection. You probably want to reread the protocol docs. Portals are very similar to SQL cursors and while the portal does indeed monopolize the connection while it is executing, you don't have to fetch all the results from a portal in one go. Oliver
В списке pgsql-jdbc по дате отправления: