You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
The bringetbitmap function allocates memory for various purposes, whichmay be quite expensive, depending on the number of scan keys. Instead ofallocating them separately, allocate one bit chunk of memory an carve itinto smaller pieces as needed - all the pieces have the same lifespan,and it saves quite a bit of CPU and memory overhead.Author: Tomas Vondra <tomas.vondra@postgresql.org>Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>Reviewed-by: Mark Dilger <hornschnorter@gmail.com>Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>Reviewed-by: Masahiko Sawada <masahiko.sawada@enterprisedb.com>Reviewed-by: John Naylor <john.naylor@enterprisedb.com>Discussion:https://postgr.es/m/c1138ead-7668-f0e1-0638-c3be3237e812@2ndquadrant.com