Dec 2019

2 commits
Fix EXTRACT(ISOYEAR FROM timestamp) for years BC.
12 Dec 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+6 more
LLM analysis, 100% surewritten from the discussion, no matching patch

Tom Lane identified the BC ISOYEAR error and proposed correcting timestamp[tz]_part() while preserving date2isoyear() semantics in #5; no attached patch implements this fix. The commit implements those corrections in src/backend/utils/adt/timestamp.c, documents the year-zero convention, and updates both regression expectations.

Remove redundant function calls in timestamp[tz]_part().
12 Dec 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+6 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #11 of 1 reviewer saw the final version

The src/backend/utils/adt/timestamp.c hunks match #1 exactly. Tom Lane additionally expanded src/test/regress/sql/timestamp.sql and timestamptz.sql and their expected outputs, as proposed in #3 and described in the commit.

  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 2 commits

Author
Japin LiLLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane2

N LLM means N of the credits come from LLM analysis, not from commit trailers.