forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4b8b356
committed
Avoid scribbling on input node tree in CREATE/ALTER DOMAIN.
This works fine in the "simple Query" code path; but if thestatement is in the plan cache then it's corrupted for futurere-execution. Apply copyObject() to protect the originaltree from modification, as we've done elsewhere.This narrow fix is applied only to the back branches. In HEAD,the problem was fixed more generally by commit7c337b6; butthat changed ProcessUtility's API, so it's infeasible toback-patch.Per bug #17053 from Charles Samborski.Discussion:https://postgr.es/m/931771.1623893989@sss.pgh.pa.usDiscussion:https://postgr.es/m/17053-3ca3f501bbc212b4@postgresql.org1 parent0d3b69a commit4b8b356
1 file changed
+14
-7
lines changedLines changed: 14 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
908 | 908 |
| |
909 | 909 |
| |
910 | 910 |
| |
911 |
| - | |
912 |
| - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
913 | 914 |
| |
914 |
| - | |
| 915 | + | |
| 916 | + | |
915 | 917 |
| |
916 | 918 |
| |
917 | 919 |
| |
| |||
2262 | 2264 |
| |
2263 | 2265 |
| |
2264 | 2266 |
| |
2265 |
| - | |
2266 |
| - | |
| 2267 | + | |
| 2268 | + | |
2267 | 2269 |
| |
2268 |
| - | |
| 2270 | + | |
2269 | 2271 |
| |
2270 | 2272 |
| |
2271 | 2273 |
| |
| |||
3136 | 3138 |
| |
3137 | 3139 |
| |
3138 | 3140 |
| |
3139 |
| - | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
3140 | 3147 |
| |
3141 | 3148 |
| |
3142 | 3149 |
| |
|
0 commit comments
Comments
(0)