Use common parser and encoder for timestamp data type.
Thomas G. Lockhart <lockhart@fourpalms.org>
Use common parser and encoder for timestamp data type. Remove older date and time code (retain NEW_DATE_CODE and NEW_TIME_CODE). Use common encoder for date and time. Fix datetime +/- timespan math bug.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/datetime.c | modified | +22 −6 |
| src/backend/utils/adt/dt.c | modified | +582 −24 |
| src/backend/utils/adt/timestamp.c | modified | +21 −3 |