Per a brief conversation with Tom, I've created a patch for adding
Bruce Momjian <bruce@momjian.us>
Per a brief conversation with Tom, I've created a patch for adding support for 'week' within the date_trunc function. Within the patch I added a couple of test cases and associated target output, and changed the documentation to add 'week' appropriately. Robert Creager
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +2 −1 |
| src/backend/utils/adt/timestamp.c | modified | +15 −1 |
| src/test/regress/expected/timestamp.out | modified | +6 −0 |
| src/test/regress/expected/timestamptz.out | modified | +8 −2 |
| src/test/regress/sql/timestamp.sql | modified | +2 −0 |
| src/test/regress/sql/timestamptz.sql | modified | +2 −0 |