aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/commit_ts.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-12-12 12:30:44 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-12-12 12:30:44 -0500
commit332584da9cfdbe91a651427a9fc3ed76dffaa529 (patch)
tree0ccc19ca00b7813c04be0b61bb29a49d8af9d0ab /src/backend/access/transam/commit_ts.c
parent7d233810a3a3b20460639253f5e38d4186cd350d (diff)
downloadpostgresql-332584da9cfdbe91a651427a9fc3ed76dffaa529.tar.gz
postgresql-332584da9cfdbe91a651427a9fc3ed76dffaa529.zip
Fix EXTRACT(ISOYEAR FROM timestamp) for years BC.
The test cases added by commit 26ae3aa80 exposed an old oversight in timestamp[tz]_part: they didn't correct the result of date2isoyear() for BC years, so that we produced an off-by-one answer for such years. Fix that, and back-patch to all supported branches. Discussion: https://postgr.es/m/SG2PR06MB37762CAE45DB0F6CA7001EA9B6550@SG2PR06MB3776.apcprd06.prod.outlook.com
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions