aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-04-07 16:30:55 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-04-07 16:30:55 -0400
commit5d79fc60c57d6fee25bc694d466702fc5edb8855 (patch)
tree15581cccf69722b43ad3216011e0b4e245f65690 /doc/src
parent41faafbd75a5c70fa94bf57e408e6b29c4425ceb (diff)
downloadpostgresql-5d79fc60c57d6fee25bc694d466702fc5edb8855.tar.gz
postgresql-5d79fc60c57d6fee25bc694d466702fc5edb8855.zip
Adjust bytea get_bit/set_bit to cope with bytea strings > 256MB.
Since the existing bit number argument can't exceed INT32_MAX, it's not possible for these functions to manipulate bits beyond the first 256MB of a bytea value. However, it'd be good if they could do at least that much, and not fall over entirely for longer bytea values. Adjust the comparisons to be done in int64 arithmetic so that works. Also tweak the error reports to show sane values in case of overflow. Also add some test cases to improve the miserable code coverage of these functions. Apply patch to back branches only; HEAD has a better solution as of commit 26a944cf2. Extracted from a much larger patch by Movead Li Discussion: https://postgr.es/m/20200312115135445367128@highgo.ca
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions