forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite4fb8ff
committed
Add a new column to pg_am to specify whether an index AM supports backward
scanning; GiST and GIN do not, and it seems like too much trouble to makethem do so. By teaching ExecSupportsBackwardScan() about this restriction,we ensure that the planner will protect a scroll cursor from the problemby adding a Materialize node.In passing, fix another longstanding bug in the same area: backwards scan ofa plan with set-returning functions in the targetlist did not work either,since the TupFromTlist expansion code pays no attention to direction (andhas no way to run a SRF backwards anyway). Again the fix is to makeExecSupportsBackwardScan check this restriction.Also adjust the index AM API specification to note that mark/restore supportis unnecessary if the AM can't produce ordered output.1 parent2a64931 commite4fb8ff
File tree
5 files changed
+119
-42
lines changed- doc/src/sgml
- src
- backend/executor
- include/catalog
5 files changed
+119
-42
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
401 | 401 |
| |
402 | 402 |
| |
403 | 403 |
| |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
404 | 411 |
| |
405 | 412 |
| |
406 | 413 |
| |
|
Lines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
477 |
| - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
478 | 480 |
| |
479 | 481 |
| |
480 | 482 |
| |
481 |
| - | |
482 |
| - | |
483 |
| - | |
484 |
| - | |
485 |
| - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
486 | 491 |
| |
487 | 492 |
| |
488 | 493 |
| |
|
Lines changed: 68 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 |
| |
46 | 52 |
| |
47 | 53 |
| |
| |||
390 | 396 |
| |
391 | 397 |
| |
392 | 398 |
| |
393 |
| - | |
| 399 | + | |
| 400 | + | |
394 | 401 |
| |
395 | 402 |
| |
396 | 403 |
| |
| |||
403 | 410 |
| |
404 | 411 |
| |
405 | 412 |
| |
| 413 | + | |
406 | 414 |
| |
407 | 415 |
| |
408 | 416 |
| |
409 | 417 |
| |
410 |
| - | |
411 | 418 |
| |
412 | 419 |
| |
413 | 420 |
| |
414 | 421 |
| |
415 | 422 |
| |
416 |
| - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
417 | 428 |
| |
418 | 429 |
| |
419 |
| - | |
| 430 | + | |
| 431 | + | |
420 | 432 |
| |
421 | 433 |
| |
422 | 434 |
| |
| 435 | + | |
423 | 436 |
| |
424 | 437 |
| |
425 | 438 |
| |
| 439 | + | |
426 | 440 |
| |
427 | 441 |
| |
428 | 442 |
| |
429 | 443 |
| |
430 | 444 |
| |
431 | 445 |
| |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + |
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 29 additions & 27 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 |
| |
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| |||
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
78 |
| - | |
| 79 | + | |
79 | 80 |
| |
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
107 | 109 |
| |
108 | 110 |
| |
109 | 111 |
| |
110 |
| - | |
| 112 | + | |
111 | 113 |
| |
112 | 114 |
| |
113 |
| - | |
| 115 | + | |
114 | 116 |
| |
115 | 117 |
| |
116 |
| - | |
| 118 | + | |
117 | 119 |
| |
118 | 120 |
| |
119 |
| - | |
| 121 | + | |
120 | 122 |
| |
121 | 123 |
| |
122 | 124 |
| |
|
0 commit comments
Comments
(0)