aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-12-12 12:30:43 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-12-12 12:30:43 -0500
commit1a3efa1eb67ab752231a6fff2743a77ae55808d5 (patch)
treed5fc67c0ee0cf0fdb80148f4a8ab36e68362e290 /src/backend/access/gist/gist.c
parent26ae3aa80e337261203ba4442452bed261ff9888 (diff)
downloadpostgresql-1a3efa1eb67ab752231a6fff2743a77ae55808d5.tar.gz
postgresql-1a3efa1eb67ab752231a6fff2743a77ae55808d5.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/gist/gist.c')
0 files changed, 0 insertions, 0 deletions