forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit102f31a
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 parent5b6b5e5 commit102f31a
1 file changed
+14
-7
lines changedLines changed: 14 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
846 | 846 |
| |
847 | 847 |
| |
848 | 848 |
| |
849 |
| - | |
850 |
| - | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
851 | 852 |
| |
852 |
| - | |
| 853 | + | |
| 854 | + | |
853 | 855 |
| |
854 | 856 |
| |
855 | 857 |
| |
| |||
2184 | 2186 |
| |
2185 | 2187 |
| |
2186 | 2188 |
| |
2187 |
| - | |
2188 |
| - | |
| 2189 | + | |
| 2190 | + | |
2189 | 2191 |
| |
2190 |
| - | |
| 2192 | + | |
2191 | 2193 |
| |
2192 | 2194 |
| |
2193 | 2195 |
| |
| |||
3069 | 3071 |
| |
3070 | 3072 |
| |
3071 | 3073 |
| |
3072 |
| - | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
3073 | 3080 |
| |
3074 | 3081 |
| |
3075 | 3082 |
| |
|
0 commit comments
Comments
(0)