forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0d9819f
committed
Measure epoch of timestamp-without-time-zone from local not UTC midnight.
This patch reverts commit191ef2band thereby restores the pre-7.3 behavior of EXTRACT(EPOCH FROMtimestamp-without-tz). Per discussion, the more recent behavior wasmisguided on a couple of grounds: it makes it hard to get anon-timezone-aware epoch value for a timestamp, and it makes this onecase dependent on the value of the timezone GUC, which is incompatiblewith having timestamp_part() labeled as immutable.The other behavior is still available (in all releases) by explicitlycasting the timestamp to timestamp with time zone before applying EXTRACT.This will need to be called out as an incompatible change in the 9.2release notes. Although having mutable behavior in a function markedimmutable is clearly a bug, we're not going to back-patch such a change.1 parent442da68 commit0d9819f
2 files changed
+6
-23
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6684 | 6684 |
| |
6685 | 6685 |
| |
6686 | 6686 |
| |
6687 |
| - | |
| 6687 | + | |
6688 | 6688 |
| |
| 6689 | + | |
| 6690 | + | |
6689 | 6691 |
| |
6690 | 6692 |
| |
6691 | 6693 |
| |
|
Lines changed: 3 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4066 | 4066 |
| |
4067 | 4067 |
| |
4068 | 4068 |
| |
4069 |
| - | |
4070 |
| - | |
4071 |
| - | |
4072 |
| - | |
4073 |
| - | |
4074 |
| - | |
4075 |
| - | |
4076 |
| - | |
4077 |
| - | |
4078 |
| - | |
4079 |
| - | |
4080 |
| - | |
4081 |
| - | |
4082 |
| - | |
4083 |
| - | |
4084 |
| - | |
4085 |
| - | |
4086 |
| - | |
4087 |
| - | |
4088 | 4069 |
| |
4089 |
| - | |
| 4070 | + | |
4090 | 4071 |
| |
4091 |
| - | |
| 4072 | + | |
4092 | 4073 |
| |
4093 | 4074 |
| |
4094 |
| - | |
| 4075 | + | |
4095 | 4076 |
| |
4096 | 4077 |
| |
4097 | 4078 |
| |
|
0 commit comments
Comments
(0)