- Notifications
You must be signed in to change notification settings - Fork5
Commit5b8e442
committed
Make plan_cluster_use_sort cope with no IndexOptInfo for the target index.
The original coding assumed that such a case represents caller error, butactually get_relation_info will omit generating an IndexOptInfo for anyindex it thinks is unsafe to use. Therefore, handle this case by returning"true" to indicate that a seqscan-and-sort is the preferred way toimplement the CLUSTER operation. New bug in 9.1, no backpatch needed.Per bug #5985 from Daniel Grace.1 parent395fcac commit5b8e442
1 file changed
+18
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3093 | 3093 | | |
3094 | 3094 | | |
3095 | 3095 | | |
3096 | | - | |
3097 | | - | |
3098 | | - | |
3099 | | - | |
3100 | | - | |
3101 | | - | |
3102 | | - | |
3103 | | - | |
3104 | | - | |
3105 | 3096 | | |
3106 | 3097 | | |
3107 | 3098 | | |
| |||
3110 | 3101 | | |
3111 | 3102 | | |
3112 | 3103 | | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
3113 | 3112 | | |
3114 | | - | |
3115 | | - | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
3116 | 3123 | | |
3117 | 3124 | | |
3118 | 3125 | | |
| |||
0 commit comments
Comments
(0)