forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc442722
committed
Fix handling of REWIND/MARK/BACKWARD in incremental sort
The executor flags were not handled entirely correctly, although thebugs were mostly harmless and it was mostly comment inaccuracy. We don'tneed to strip any of the flags for child nodes.Incremental sort does not support backward scans of mark/restore, soMARK/BACKWARDS flags should not be possible. So we simply ensure thisusing an assert, and we don't bother removing them when initializingthe child node.With REWIND it's a bit less clear - incremental sort does not supportREWIND, but there is no way to signal this - it's legal to just ignorethe flag. We however continue passing the flag to child nodes, becausethey might be useful to leverage that.Reported-by: Michael PaquierAuthor: James ColemanReviewed-by: Tomas VondraDiscussion:https://postgr.es/m/20200414065336.GI1492@paquier.xyz1 parent6c29888 commitc442722
1 file changed
+10
-10
lines changedLines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
986 | 986 |
| |
987 | 987 |
| |
988 | 988 |
| |
989 |
| - | |
990 |
| - | |
991 |
| - | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
992 | 992 |
| |
993 |
| - | |
994 |
| - | |
| 993 | + | |
995 | 994 |
| |
996 | 995 |
| |
997 | 996 |
| |
| |||
1041 | 1040 |
| |
1042 | 1041 |
| |
1043 | 1042 |
| |
1044 |
| - | |
1045 |
| - | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1046 | 1047 |
| |
1047 |
| - | |
1048 |
| - | |
1049 | 1048 |
| |
1050 | 1049 |
| |
1051 | 1050 |
| |
| |||
1126 | 1125 |
| |
1127 | 1126 |
| |
1128 | 1127 |
| |
1129 |
| - | |
| 1128 | + | |
| 1129 | + | |
1130 | 1130 |
| |
1131 | 1131 |
| |
1132 | 1132 |
| |
|
0 commit comments
Comments
(0)