forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2b0c86b
committed
Ensure that the result of evaluating a function during constant-expression
simplification gets detoasted before it is incorporated into a Const node.Otherwise, if an immutable function were to return a TOAST pointer (anunlikely case, but it can be made to happen), we would end up with a planthat depends on the continued existence of the out-of-line toast datum.1 parent05c609b commit2b0c86b
1 file changed
+14
-3
lines changedLines changed: 14 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3265 | 3265 |
| |
3266 | 3266 |
| |
3267 | 3267 |
| |
3268 |
| - | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
3269 | 3275 |
| |
3270 |
| - | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
3271 | 3282 |
| |
3272 | 3283 |
| |
3273 | 3284 |
| |
|
0 commit comments
Comments
(0)