aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-09-06 15:50:31 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-09-06 15:50:40 -0400
commit96ba40c0f15aa1e950b35536387fde30ebbc4547 (patch)
treec9fe5ab6f3ed39e92c20acc8b4c2390eef4d62cc /src/backend/access/gist/gist.c
parent512c197b21aa86b1827bfc433f4aebc1469648fe (diff)
downloadpostgresql-96ba40c0f15aa1e950b35536387fde30ebbc4547.tar.gz
postgresql-96ba40c0f15aa1e950b35536387fde30ebbc4547.zip
Guard against possible memory allocation botch in batchmemtuples().
Negative availMemLessRefund would be problematic. It's not entirely clear whether the case can be hit in the code as it stands, but this seems like good future-proofing in any case. While we're at it, insist that the value be not merely positive but not tiny, so as to avoid doing a lot of repalloc work for little gain. Peter Geoghegan Discussion: <CAM3SWZRVkuUB68DbAkgw=532gW0f+fofKueAMsY7hVYi68MuYQ@mail.gmail.com>
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions