- Notifications
You must be signed in to change notification settings - Fork5
Commitb2c4071
committed
Redesign query-snapshot timing so that volatile functions in READ COMMITTED
mode see a fresh snapshot for each command in the function, rather thanusing the latest interactive command's snapshot. Also, suppress freshsnapshots as well as CommandCounterIncrement inside STABLE and IMMUTABLEfunctions, instead using the snapshot taken for the most closely nestedregular query. (This behavior is only sane for read-only functions, sothe patch also enforces that such functions contain only SELECT commands.)As per my proposal of 6-Sep-2004; I note that I floated essentially thesame proposal on 19-Jun-2002, but that discussion tailed off without anyaction. Since 8.0 seems like the right place to be taking possiblynontrivial backwards compatibility hits, let's get it done now.1 parentd695288 commitb2c4071
File tree
41 files changed
+1737
-807
lines changed- contrib
- tablefunc
- tsearch2
- doc/src/sgml
- ref
- src
- backend
- access/transam
- commands
- executor
- tcop
- utils
- adt
- time
- include
- executor
- tcop
- utils
- pl
- plperl
- plpgsql/src
- plpython
- tcl
- test/regress
- expected
- sql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+1737
-807
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
389 |
| - | |
| 389 | + | |
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
| |||
777 | 777 |
| |
778 | 778 |
| |
779 | 779 |
| |
780 |
| - | |
| 780 | + | |
781 | 781 |
| |
782 | 782 |
| |
783 | 783 |
| |
| |||
855 | 855 |
| |
856 | 856 |
| |
857 | 857 |
| |
858 |
| - | |
| 858 | + | |
859 | 859 |
| |
860 | 860 |
| |
861 | 861 |
| |
| |||
1376 | 1376 |
| |
1377 | 1377 |
| |
1378 | 1378 |
| |
1379 |
| - | |
| 1379 | + | |
1380 | 1380 |
| |
1381 | 1381 |
| |
1382 | 1382 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
449 |
| - | |
| 449 | + | |
450 | 450 |
| |
451 | 451 |
| |
452 | 452 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 |
| - | |
| 178 | + | |
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
175 |
| - | |
| 175 | + | |
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
| |||
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
209 | 213 |
| |
210 | 214 |
| |
211 | 215 |
| |
|
Lines changed: 41 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
337 | 337 |
| |
338 | 338 |
| |
339 | 339 |
| |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
340 | 360 |
| |
341 | 361 |
| |
342 | 362 |
| |
| |||
1434 | 1454 |
| |
1435 | 1455 |
| |
1436 | 1456 |
| |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1437 | 1477 |
| |
1438 | 1478 |
| |
1439 | 1479 |
| |
|
0 commit comments
Comments
(0)