forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita3d6264
committed
interval_out() must be marked STABLE, not IMMUTABLE.
Its results vary depending on the IntervalStyle GUC, so it cannotbe considered immutable.This is an extremely ancient bug. AFAICT it was a sloppy mistakein6f58115, which marked it "cacheable" alongside marking severalother interval functions that way. At the time, interval_out()depended on DateStyle not IntervalStyle, but it was still wrong.Back-patching this change doesn't look very practical, so I won't.Aside from the usual difficulties of getting catalog changesapplied to existing databases, people might have indexes,generated columns, etc that depend on interval-to-text castsbeing considered immutable. (This'd not really give them anyproblem as long as they never change IntervalStyle.) Theywouldn't appreciate us breaking such usage in minor releases.Per bug #17371 from Marcus Gartner.Discussion:https://postgr.es/m/17371-8f57e6e9ca5e35bf@postgresql.org1 parent6c4a890 commita3d6264
2 files changed
+3
-3
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2290 | 2290 |
| |
2291 | 2291 |
| |
2292 | 2292 |
| |
2293 |
| - | |
2294 |
| - | |
| 2293 | + | |
| 2294 | + | |
2295 | 2295 |
| |
2296 | 2296 |
| |
2297 | 2297 |
| |
|
0 commit comments
Comments
(0)