diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-08-20 14:51:02 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-08-20 14:51:02 -0400 |
commit | 08e1eedf247e04a9652d997a74ceb46d889124ba (patch) | |
tree | 7a09ecadfc7c18d035a0b13c5a02bad22167bc7c /src/backend/executor/execUtils.c | |
parent | ee639d277787a75183d3763728f02da0d0a6ae52 (diff) | |
download | postgresql-08e1eedf247e04a9652d997a74ceb46d889124ba.tar.gz postgresql-08e1eedf247e04a9652d997a74ceb46d889124ba.zip |
Fix performance problem when building a lossy tidbitmap.
As pointed out by Sergey Koposov, repeated invocations of tbm_lossify can
make building a large tidbitmap into an O(N^2) operation. To fix, make
sure we remove more than the minimum amount of information per call, and
add a fallback path to behave sanely if we're unable to fit the bitmap
within the requested amount of memory.
This has been wrong since the tidbitmap code was written, so back-patch
to all supported branches.
Diffstat (limited to 'src/backend/executor/execUtils.c')
0 files changed, 0 insertions, 0 deletions