Fix timestamptz_in so that parsing of 'now'::timestamptz gives right
Tom Lane <tgl@sss.pgh.pa.us>
Fix timestamptz_in so that parsing of 'now'::timestamptz gives right answer when SET TIMEZONE has been done since the start of the current transaction. Per bug report from Robert Haas. I plan some futher cleanup in HEAD, but this is a low-risk patch for the immediate issue in 7.3.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/datetime.c | modified | +3 −5 |
| src/backend/utils/adt/nabstime.c | modified | +5 −6 |
| src/include/utils/datetime.h | modified | +2 −2 |