Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2016-09-06 19:50:31 +0000
committerTom Lane2016-09-06 19:50:31 +0000
commitf032722f86a709277d44a317a3bc8acd74861a72 (patch)
tree81bafcfaa196e6e9ee3bf222da95e9e3dfb9984e /src/backend/commands/functioncmds.c
parentcdc70597c9ba62aad08a46e55c0c783bf4c21c9c (diff)
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/commands/functioncmds.c')
0 files changed, 0 insertions, 0 deletions