![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
"M. Bastin" <marcbastin (AT) mindspring (DOT) com> writes: I'm reading the docs about the extended query language and the portals. Is it possible to use portals as a kind of concurrent cursors over a single TCP/IP connection? Or should you execute and close portals one after another and never execute the next portal before the previous one is closed? (Like regular transactions.) You can certainly have multiple portals open and fetch from different ones in turn; not clear if that's what you meant. |
#12
| |||
| |||
|
|
The only thing that bothers me is the Sync command that would put an end to all portals at once isn't it? |
#13
| |||
| |||
|
|
The only thing that bothers me is the Sync command that would put an end to all portals at once isn't it? Not if you are inside a transaction block (ie, have issued a BEGIN command). A possibly more serious issue is that an error detected in any one of the portals aborts the transaction and thus you lose all the portals. We may eventually have a solution for that involving subtransactions. regards, tom lane |
![]() |
| Thread Tools | |
| Display Modes | |
| |