forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd27f363


Jan Wieck
Jan Wieck
Enhancement of SPI to get access to portals
- New functions to create a portal using a prepared/saved SPI plan or lookup an existing portal by name.- Functions to fetch/move from/in portals. Results are placed in the usual SPI_processed and SPI_tuptable, so the entire set of utility functions can be used to gain attribute access.- Prepared/saved SPI plans now use their own memory context and SPI_freeplan(plan) can remove them.- Tuple result sets (SPI_tuptable) now uses it's own memory context and can be free'd by SPI_freetuptable(tuptab).Enhancement of PL/pgSQL- Uses generic named portals internally in FOR ... SELECT loops to avoid running out of memory on huge result sets.- Support for CURSOR and REFCURSOR syntax using the new SPI functionality. Cursors used internally only need no explicit transaction block. Refcursor variables can be used inside of explicit transaction block to pass cursors between main application and functions.Jan1 parentbe03eb2 commitd27f363
File tree
13 files changed
+1514
-114
lines changed- src
- backend
- commands
- executor
- include
- catalog
- executor
- utils
- pl/plpgsql/src
13 files changed
+1514
-114
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
| 111 | + | |
111 | 112 |
| |
112 | 113 |
| |
113 | 114 |
| |
| |||
143 | 144 |
| |
144 | 145 |
| |
145 | 146 |
| |
146 |
| - | |
| 147 | + | |
147 | 148 |
| |
148 | 149 |
| |
149 | 150 |
| |
150 | 151 |
| |
151 | 152 |
| |
152 | 153 |
| |
| 154 | + | |
153 | 155 |
| |
154 | 156 |
| |
155 | 157 |
| |
| |||
197 | 199 |
| |
198 | 200 |
| |
199 | 201 |
| |
200 |
| - | |
| 202 | + | |
201 | 203 |
| |
202 | 204 |
| |
203 | 205 |
| |
|
0 commit comments
Comments
(0)