forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit34f5119
committed
Fix pgbench in prepared mode with an empty pipeline
It crashes because it references memory that's not allocated in thatparticular case. Fix by allocating it.Reported-by: Alexander Lakhin <exclusion@gmail.com>Discussion:https://postgr.es/m/bcf802a6-afc1-95b9-7bf4-c5dd868ec144@gmail.com1 parent4729d1e commit34f5119
2 files changed
+28
-18
lines changedLines changed: 26 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3070 | 3070 |
| |
3071 | 3071 |
| |
3072 | 3072 |
| |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
3073 | 3094 |
| |
3074 | 3095 |
| |
3075 | 3096 |
| |
| |||
3082 | 3103 |
| |
3083 | 3104 |
| |
3084 | 3105 |
| |
3085 |
| - | |
3086 |
| - | |
3087 |
| - | |
3088 |
| - | |
3089 | 3106 |
| |
3090 |
| - | |
3091 |
| - | |
3092 |
| - | |
3093 |
| - | |
3094 |
| - | |
3095 |
| - | |
3096 |
| - | |
3097 |
| - | |
3098 |
| - | |
3099 |
| - | |
3100 |
| - | |
3101 |
| - | |
| 3107 | + | |
3102 | 3108 |
| |
3103 | 3109 |
| |
3104 | 3110 |
| |
| |||
3130 | 3136 |
| |
3131 | 3137 |
| |
3132 | 3138 |
| |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
3133 | 3142 |
| |
3134 | 3143 |
| |
3135 | 3144 |
| |
3136 | 3145 |
| |
3137 | 3146 |
| |
3138 |
| - | |
3139 |
| - | |
| 3147 | + | |
3140 | 3148 |
| |
3141 | 3149 |
| |
3142 | 3150 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
790 | 790 |
| |
791 | 791 |
| |
792 | 792 |
| |
| 793 | + | |
| 794 | + | |
793 | 795 |
| |
794 | 796 |
| |
795 | 797 |
| |
|
0 commit comments
Comments
(0)