forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit789c5b0
committed
Improve documentation about CASE and constant subexpressions.
The possibility that constant subexpressions of a CASE might be evaluatedat planning time was touched on in 9.17.1 (CASE expressions), but it reallyought to be explained in 4.2.14 (Expression Evaluation Rules) which is theprimary discussion of such topics. Add text and an example there, andrevise the <note> under CASE to link there.Back-patch to all supported branches, since it's acted like this for along time (though 9.2+ is probably worse because of its more aggressiveuse of constant-folding via replanning of nominally-prepared statements).Pre-9.4, also back-patch text added in commit0ce627d about CASE versusaggregate functions.Tom Lane and David Johnston, per discussion of bug #12273.1 parent0edc237 commit789c5b0
2 files changed
+56
-5
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9983 | 9983 |
| |
9984 | 9984 |
| |
9985 | 9985 |
| |
9986 |
| - | |
9987 |
| - | |
9988 |
| - | |
9989 |
| - | |
9990 |
| - | |
| 9986 | + | |
| 9987 | + | |
| 9988 | + | |
| 9989 | + | |
| 9990 | + | |
| 9991 | + | |
| 9992 | + | |
9991 | 9993 |
| |
9992 | 9994 |
| |
9993 | 9995 |
| |
|
Lines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2299 | 2299 |
| |
2300 | 2300 |
| |
2301 | 2301 |
| |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
2302 | 2351 |
| |
2303 | 2352 |
| |
2304 | 2353 |
| |
|
0 commit comments
Comments
(0)