aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsquery_gist.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-01-13 13:27:39 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-01-13 13:41:09 +0100
commitbf65f3c8871bcc95a3b4d5bcb5409d3df05c8273 (patch)
tree2e14ef8657b31517b077c9ae2cc0b356ade78f05 /src/backend/utils/adt/tsquery_gist.c
parent52bc730381420a8fd9a92e633e217c8ca8c3a54b (diff)
downloadpostgresql-bf65f3c8871bcc95a3b4d5bcb5409d3df05c8273.tar.gz
postgresql-bf65f3c8871bcc95a3b4d5bcb5409d3df05c8273.zip
Fix base backup with database OIDs larger than INT32_MAX
The use of pg_atoi() for parsing a string into an Oid fails for values larger than INT32_MAX, since OIDs are unsigned. Instead, use atooid(). While this has less error checking, the contents of the data directory are expected to be trustworthy, so we don't need to go out of our way to do full error checking. Discussion: https://www.postgresql.org/message-id/flat/dea47fc8-6c89-a2b1-07e3-754ff1ab094b%402ndquadrant.com
Diffstat (limited to 'src/backend/utils/adt/tsquery_gist.c')
0 files changed, 0 insertions, 0 deletions