diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-01-13 13:27:39 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-01-13 13:41:12 +0100 |
commit | 259bbe177808986e5d226ea7ce5a1ebb74657791 (patch) | |
tree | bfde47cfb7dbbfa717b36b3c0dc18d23e776ff66 /src/backend/access/gist/gist.c | |
parent | 23d0dfa8fa016f7f8af25b1040d7a55ba77da6fc (diff) | |
download | postgresql-259bbe177808986e5d226ea7ce5a1ebb74657791.tar.gz postgresql-259bbe177808986e5d226ea7ce5a1ebb74657791.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/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions