                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390908.84..390908.85 rows=1 width=8) (actual time=128.977..128.985 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8105.06..390106.40 rows=320977 width=0) (actual time=59.609..106.510 rows=320016.00 loops=1)
         Recheck Cond: (((id >= 1000) AND (id <= 21000)) OR ((id >= 1251000) AND (id <= 1271000)) OR ((id >= 2501000) AND (id <= 2521000)) OR ((id >= 3751000) AND (id <= 3771000)) OR ((id >= 5001000) AND (id <= 5021000)) OR ((id >= 6251000) AND (id <= 6271000)) OR ((id >= 7501000) AND (id <= 7521000)) OR ((id >= 8751000) AND (id <= 8771000)) OR ((id >= 10001000) AND (id <= 10021000)) OR ((id >= 11251000) AND (id <= 11271000)) OR ((id >= 12501000) AND (id <= 12521000)) OR ((id >= 13751000) AND (id <= 13771000)) OR ((id >= 15001000) AND (id <= 15021000)) OR ((id >= 16251000) AND (id <= 16271000)) OR ((id >= 17501000) AND (id <= 17521000)) OR ((id >= 18751000) AND (id <= 18771000)))
         Heap Blocks: exact=5533
         Buffers: shared hit=6454
         ->  BitmapOr  (cost=8105.06..8105.06 rows=323415 width=0) (actual time=58.483..58.490 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..380.86 rows=18042 width=0) (actual time=3.697..3.697 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1000) AND (id <= 21000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..410.24 rows=19380 width=0) (actual time=3.942..3.942 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1251000) AND (id <= 1271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..488.02 rows=23158 width=0) (actual time=3.691..3.691 rows=20001.00 loops=1)
                     Index Cond: ((id >= 2501000) AND (id <= 2521000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..402.54 rows=19010 width=0) (actual time=3.766..3.766 rows=20001.00 loops=1)
                     Index Cond: ((id >= 3751000) AND (id <= 3771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..524.66 rows=24822 width=0) (actual time=3.867..3.867 rows=20001.00 loops=1)
                     Index Cond: ((id >= 5001000) AND (id <= 5021000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..425.88 rows=20144 width=0) (actual time=4.041..4.041 rows=20001.00 loops=1)
                     Index Cond: ((id >= 6251000) AND (id <= 6271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..433.54 rows=20510 width=0) (actual time=3.684..3.684 rows=20001.00 loops=1)
                     Index Cond: ((id >= 7501000) AND (id <= 7521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..435.47 rows=20703 width=0) (actual time=3.661..3.661 rows=20001.00 loops=1)
                     Index Cond: ((id >= 8751000) AND (id <= 8771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.98 rows=18854 width=0) (actual time=3.685..3.685 rows=20001.00 loops=1)
                     Index Cond: ((id >= 10001000) AND (id <= 10021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..441.49 rows=20905 width=0) (actual time=3.663..3.663 rows=20001.00 loops=1)
                     Index Cond: ((id >= 11251000) AND (id <= 11271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..457.24 rows=21680 width=0) (actual time=4.165..4.165 rows=20001.00 loops=1)
                     Index Cond: ((id >= 12501000) AND (id <= 12521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..411.94 rows=19550 width=0) (actual time=3.534..3.534 rows=20001.00 loops=1)
                     Index Cond: ((id >= 13751000) AND (id <= 13771000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..449.46 rows=21302 width=0) (actual time=3.693..3.693 rows=20001.00 loops=1)
                     Index Cond: ((id >= 15001000) AND (id <= 15021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..397.60 rows=18916 width=0) (actual time=3.474..3.474 rows=20001.00 loops=1)
                     Index Cond: ((id >= 16251000) AND (id <= 16271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..374.97 rows=17853 width=0) (actual time=3.177..3.177 rows=20001.00 loops=1)
                     Index Cond: ((id >= 17501000) AND (id <= 17521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..390.30 rows=18586 width=0) (actual time=2.735..2.736 rows=20001.00 loops=1)
                     Index Cond: ((id >= 18751000) AND (id <= 18771000))
                     Index Searches: 1
                     Buffers: shared hit=57
 Planning:
   Buffers: shared hit=80
 Planning Time: 1.265 ms
 Execution Time: 130.395 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390908.84..390908.85 rows=1 width=8) (actual time=94.005..94.013 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8105.06..390106.40 rows=320977 width=0) (actual time=40.640..75.684 rows=320016.00 loops=1)
         Recheck Cond: (((id >= 1000) AND (id <= 21000)) OR ((id >= 1251000) AND (id <= 1271000)) OR ((id >= 2501000) AND (id <= 2521000)) OR ((id >= 3751000) AND (id <= 3771000)) OR ((id >= 5001000) AND (id <= 5021000)) OR ((id >= 6251000) AND (id <= 6271000)) OR ((id >= 7501000) AND (id <= 7521000)) OR ((id >= 8751000) AND (id <= 8771000)) OR ((id >= 10001000) AND (id <= 10021000)) OR ((id >= 11251000) AND (id <= 11271000)) OR ((id >= 12501000) AND (id <= 12521000)) OR ((id >= 13751000) AND (id <= 13771000)) OR ((id >= 15001000) AND (id <= 15021000)) OR ((id >= 16251000) AND (id <= 16271000)) OR ((id >= 17501000) AND (id <= 17521000)) OR ((id >= 18751000) AND (id <= 18771000)))
         Heap Blocks: exact=5533
         Buffers: shared hit=6454
         ->  BitmapOr  (cost=8105.06..8105.06 rows=323415 width=0) (actual time=39.751..39.758 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..380.86 rows=18042 width=0) (actual time=2.356..2.357 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1000) AND (id <= 21000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..410.24 rows=19380 width=0) (actual time=2.530..2.530 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1251000) AND (id <= 1271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..488.02 rows=23158 width=0) (actual time=2.376..2.376 rows=20001.00 loops=1)
                     Index Cond: ((id >= 2501000) AND (id <= 2521000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..402.54 rows=19010 width=0) (actual time=2.438..2.438 rows=20001.00 loops=1)
                     Index Cond: ((id >= 3751000) AND (id <= 3771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..524.66 rows=24822 width=0) (actual time=2.623..2.623 rows=20001.00 loops=1)
                     Index Cond: ((id >= 5001000) AND (id <= 5021000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..425.88 rows=20144 width=0) (actual time=2.582..2.582 rows=20001.00 loops=1)
                     Index Cond: ((id >= 6251000) AND (id <= 6271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..433.54 rows=20510 width=0) (actual time=2.164..2.164 rows=20001.00 loops=1)
                     Index Cond: ((id >= 7501000) AND (id <= 7521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..435.47 rows=20703 width=0) (actual time=2.126..2.126 rows=20001.00 loops=1)
                     Index Cond: ((id >= 8751000) AND (id <= 8771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.98 rows=18854 width=0) (actual time=2.350..2.350 rows=20001.00 loops=1)
                     Index Cond: ((id >= 10001000) AND (id <= 10021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..441.49 rows=20905 width=0) (actual time=2.464..2.464 rows=20001.00 loops=1)
                     Index Cond: ((id >= 11251000) AND (id <= 11271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..457.24 rows=21680 width=0) (actual time=2.764..2.765 rows=20001.00 loops=1)
                     Index Cond: ((id >= 12501000) AND (id <= 12521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..411.94 rows=19550 width=0) (actual time=2.717..2.717 rows=20001.00 loops=1)
                     Index Cond: ((id >= 13751000) AND (id <= 13771000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..449.46 rows=21302 width=0) (actual time=3.118..3.118 rows=20001.00 loops=1)
                     Index Cond: ((id >= 15001000) AND (id <= 15021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..397.60 rows=18916 width=0) (actual time=2.665..2.665 rows=20001.00 loops=1)
                     Index Cond: ((id >= 16251000) AND (id <= 16271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..374.97 rows=17853 width=0) (actual time=2.213..2.213 rows=20001.00 loops=1)
                     Index Cond: ((id >= 17501000) AND (id <= 17521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..390.30 rows=18586 width=0) (actual time=2.254..2.255 rows=20001.00 loops=1)
                     Index Cond: ((id >= 18751000) AND (id <= 18771000))
                     Index Searches: 1
                     Buffers: shared hit=57
 Planning:
   Buffers: shared hit=80
 Planning Time: 0.728 ms
 Execution Time: 94.378 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390908.84..390908.85 rows=1 width=8) (actual time=98.238..98.246 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8105.06..390106.40 rows=320977 width=0) (actual time=39.864..78.856 rows=320016.00 loops=1)
         Recheck Cond: (((id >= 1000) AND (id <= 21000)) OR ((id >= 1251000) AND (id <= 1271000)) OR ((id >= 2501000) AND (id <= 2521000)) OR ((id >= 3751000) AND (id <= 3771000)) OR ((id >= 5001000) AND (id <= 5021000)) OR ((id >= 6251000) AND (id <= 6271000)) OR ((id >= 7501000) AND (id <= 7521000)) OR ((id >= 8751000) AND (id <= 8771000)) OR ((id >= 10001000) AND (id <= 10021000)) OR ((id >= 11251000) AND (id <= 11271000)) OR ((id >= 12501000) AND (id <= 12521000)) OR ((id >= 13751000) AND (id <= 13771000)) OR ((id >= 15001000) AND (id <= 15021000)) OR ((id >= 16251000) AND (id <= 16271000)) OR ((id >= 17501000) AND (id <= 17521000)) OR ((id >= 18751000) AND (id <= 18771000)))
         Heap Blocks: exact=5533
         Buffers: shared hit=6454
         ->  BitmapOr  (cost=8105.06..8105.06 rows=323415 width=0) (actual time=38.904..38.911 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..380.86 rows=18042 width=0) (actual time=2.323..2.323 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1000) AND (id <= 21000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..410.24 rows=19380 width=0) (actual time=2.257..2.257 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1251000) AND (id <= 1271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..488.02 rows=23158 width=0) (actual time=2.362..2.363 rows=20001.00 loops=1)
                     Index Cond: ((id >= 2501000) AND (id <= 2521000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..402.54 rows=19010 width=0) (actual time=2.143..2.143 rows=20001.00 loops=1)
                     Index Cond: ((id >= 3751000) AND (id <= 3771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..524.66 rows=24822 width=0) (actual time=2.303..2.303 rows=20001.00 loops=1)
                     Index Cond: ((id >= 5001000) AND (id <= 5021000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..425.88 rows=20144 width=0) (actual time=2.280..2.280 rows=20001.00 loops=1)
                     Index Cond: ((id >= 6251000) AND (id <= 6271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..433.54 rows=20510 width=0) (actual time=2.270..2.270 rows=20001.00 loops=1)
                     Index Cond: ((id >= 7501000) AND (id <= 7521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..435.47 rows=20703 width=0) (actual time=2.365..2.365 rows=20001.00 loops=1)
                     Index Cond: ((id >= 8751000) AND (id <= 8771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.98 rows=18854 width=0) (actual time=2.403..2.403 rows=20001.00 loops=1)
                     Index Cond: ((id >= 10001000) AND (id <= 10021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..441.49 rows=20905 width=0) (actual time=2.522..2.522 rows=20001.00 loops=1)
                     Index Cond: ((id >= 11251000) AND (id <= 11271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..457.24 rows=21680 width=0) (actual time=2.712..2.712 rows=20001.00 loops=1)
                     Index Cond: ((id >= 12501000) AND (id <= 12521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..411.94 rows=19550 width=0) (actual time=2.438..2.439 rows=20001.00 loops=1)
                     Index Cond: ((id >= 13751000) AND (id <= 13771000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..449.46 rows=21302 width=0) (actual time=2.872..2.873 rows=20001.00 loops=1)
                     Index Cond: ((id >= 15001000) AND (id <= 15021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..397.60 rows=18916 width=0) (actual time=3.100..3.100 rows=20001.00 loops=1)
                     Index Cond: ((id >= 16251000) AND (id <= 16271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..374.97 rows=17853 width=0) (actual time=2.241..2.241 rows=20001.00 loops=1)
                     Index Cond: ((id >= 17501000) AND (id <= 17521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..390.30 rows=18586 width=0) (actual time=2.303..2.303 rows=20001.00 loops=1)
                     Index Cond: ((id >= 18751000) AND (id <= 18771000))
                     Index Searches: 1
                     Buffers: shared hit=57
 Planning:
   Buffers: shared hit=80
 Planning Time: 0.815 ms
 Execution Time: 98.702 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390908.84..390908.85 rows=1 width=8) (actual time=97.038..97.045 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8105.06..390106.40 rows=320977 width=0) (actual time=39.967..77.624 rows=320016.00 loops=1)
         Recheck Cond: (((id >= 1000) AND (id <= 21000)) OR ((id >= 1251000) AND (id <= 1271000)) OR ((id >= 2501000) AND (id <= 2521000)) OR ((id >= 3751000) AND (id <= 3771000)) OR ((id >= 5001000) AND (id <= 5021000)) OR ((id >= 6251000) AND (id <= 6271000)) OR ((id >= 7501000) AND (id <= 7521000)) OR ((id >= 8751000) AND (id <= 8771000)) OR ((id >= 10001000) AND (id <= 10021000)) OR ((id >= 11251000) AND (id <= 11271000)) OR ((id >= 12501000) AND (id <= 12521000)) OR ((id >= 13751000) AND (id <= 13771000)) OR ((id >= 15001000) AND (id <= 15021000)) OR ((id >= 16251000) AND (id <= 16271000)) OR ((id >= 17501000) AND (id <= 17521000)) OR ((id >= 18751000) AND (id <= 18771000)))
         Heap Blocks: exact=5533
         Buffers: shared hit=6454
         ->  BitmapOr  (cost=8105.06..8105.06 rows=323415 width=0) (actual time=39.039..39.046 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..380.86 rows=18042 width=0) (actual time=2.963..2.963 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1000) AND (id <= 21000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..410.24 rows=19380 width=0) (actual time=2.812..2.812 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1251000) AND (id <= 1271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..488.02 rows=23158 width=0) (actual time=2.404..2.404 rows=20001.00 loops=1)
                     Index Cond: ((id >= 2501000) AND (id <= 2521000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..402.54 rows=19010 width=0) (actual time=2.131..2.131 rows=20001.00 loops=1)
                     Index Cond: ((id >= 3751000) AND (id <= 3771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..524.66 rows=24822 width=0) (actual time=2.149..2.149 rows=20001.00 loops=1)
                     Index Cond: ((id >= 5001000) AND (id <= 5021000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..425.88 rows=20144 width=0) (actual time=3.380..3.381 rows=20001.00 loops=1)
                     Index Cond: ((id >= 6251000) AND (id <= 6271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..433.54 rows=20510 width=0) (actual time=2.229..2.229 rows=20001.00 loops=1)
                     Index Cond: ((id >= 7501000) AND (id <= 7521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..435.47 rows=20703 width=0) (actual time=2.219..2.219 rows=20001.00 loops=1)
                     Index Cond: ((id >= 8751000) AND (id <= 8771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.98 rows=18854 width=0) (actual time=2.544..2.544 rows=20001.00 loops=1)
                     Index Cond: ((id >= 10001000) AND (id <= 10021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..441.49 rows=20905 width=0) (actual time=2.238..2.238 rows=20001.00 loops=1)
                     Index Cond: ((id >= 11251000) AND (id <= 11271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..457.24 rows=21680 width=0) (actual time=2.492..2.492 rows=20001.00 loops=1)
                     Index Cond: ((id >= 12501000) AND (id <= 12521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..411.94 rows=19550 width=0) (actual time=2.377..2.377 rows=20001.00 loops=1)
                     Index Cond: ((id >= 13751000) AND (id <= 13771000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..449.46 rows=21302 width=0) (actual time=2.183..2.184 rows=20001.00 loops=1)
                     Index Cond: ((id >= 15001000) AND (id <= 15021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..397.60 rows=18916 width=0) (actual time=2.324..2.324 rows=20001.00 loops=1)
                     Index Cond: ((id >= 16251000) AND (id <= 16271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..374.97 rows=17853 width=0) (actual time=2.376..2.377 rows=20001.00 loops=1)
                     Index Cond: ((id >= 17501000) AND (id <= 17521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..390.30 rows=18586 width=0) (actual time=2.208..2.209 rows=20001.00 loops=1)
                     Index Cond: ((id >= 18751000) AND (id <= 18771000))
                     Index Searches: 1
                     Buffers: shared hit=57
 Planning:
   Buffers: shared hit=80
 Planning Time: 0.809 ms
 Execution Time: 97.488 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390908.84..390908.85 rows=1 width=8) (actual time=100.822..100.829 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8105.06..390106.40 rows=320977 width=0) (actual time=45.515..82.316 rows=320016.00 loops=1)
         Recheck Cond: (((id >= 1000) AND (id <= 21000)) OR ((id >= 1251000) AND (id <= 1271000)) OR ((id >= 2501000) AND (id <= 2521000)) OR ((id >= 3751000) AND (id <= 3771000)) OR ((id >= 5001000) AND (id <= 5021000)) OR ((id >= 6251000) AND (id <= 6271000)) OR ((id >= 7501000) AND (id <= 7521000)) OR ((id >= 8751000) AND (id <= 8771000)) OR ((id >= 10001000) AND (id <= 10021000)) OR ((id >= 11251000) AND (id <= 11271000)) OR ((id >= 12501000) AND (id <= 12521000)) OR ((id >= 13751000) AND (id <= 13771000)) OR ((id >= 15001000) AND (id <= 15021000)) OR ((id >= 16251000) AND (id <= 16271000)) OR ((id >= 17501000) AND (id <= 17521000)) OR ((id >= 18751000) AND (id <= 18771000)))
         Heap Blocks: exact=5533
         Buffers: shared hit=6454
         ->  BitmapOr  (cost=8105.06..8105.06 rows=323415 width=0) (actual time=44.584..44.590 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..380.86 rows=18042 width=0) (actual time=3.325..3.326 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1000) AND (id <= 21000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..410.24 rows=19380 width=0) (actual time=3.415..3.415 rows=20001.00 loops=1)
                     Index Cond: ((id >= 1251000) AND (id <= 1271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..488.02 rows=23158 width=0) (actual time=3.441..3.442 rows=20001.00 loops=1)
                     Index Cond: ((id >= 2501000) AND (id <= 2521000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..402.54 rows=19010 width=0) (actual time=3.293..3.294 rows=20001.00 loops=1)
                     Index Cond: ((id >= 3751000) AND (id <= 3771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..524.66 rows=24822 width=0) (actual time=3.361..3.361 rows=20001.00 loops=1)
                     Index Cond: ((id >= 5001000) AND (id <= 5021000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..425.88 rows=20144 width=0) (actual time=2.813..2.813 rows=20001.00 loops=1)
                     Index Cond: ((id >= 6251000) AND (id <= 6271000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..433.54 rows=20510 width=0) (actual time=2.201..2.201 rows=20001.00 loops=1)
                     Index Cond: ((id >= 7501000) AND (id <= 7521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..435.47 rows=20703 width=0) (actual time=2.312..2.312 rows=20001.00 loops=1)
                     Index Cond: ((id >= 8751000) AND (id <= 8771000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.98 rows=18854 width=0) (actual time=2.750..2.750 rows=20001.00 loops=1)
                     Index Cond: ((id >= 10001000) AND (id <= 10021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..441.49 rows=20905 width=0) (actual time=2.744..2.744 rows=20001.00 loops=1)
                     Index Cond: ((id >= 11251000) AND (id <= 11271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..457.24 rows=21680 width=0) (actual time=2.422..2.422 rows=20001.00 loops=1)
                     Index Cond: ((id >= 12501000) AND (id <= 12521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..411.94 rows=19550 width=0) (actual time=2.086..2.086 rows=20001.00 loops=1)
                     Index Cond: ((id >= 13751000) AND (id <= 13771000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..449.46 rows=21302 width=0) (actual time=2.131..2.131 rows=20001.00 loops=1)
                     Index Cond: ((id >= 15001000) AND (id <= 15021000))
                     Index Searches: 1
                     Buffers: shared hit=57
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..397.60 rows=18916 width=0) (actual time=2.696..2.696 rows=20001.00 loops=1)
                     Index Cond: ((id >= 16251000) AND (id <= 16271000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..374.97 rows=17853 width=0) (actual time=2.893..2.893 rows=20001.00 loops=1)
                     Index Cond: ((id >= 17501000) AND (id <= 17521000))
                     Index Searches: 1
                     Buffers: shared hit=58
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..390.30 rows=18586 width=0) (actual time=2.689..2.689 rows=20001.00 loops=1)
                     Index Cond: ((id >= 18751000) AND (id <= 18771000))
                     Index Searches: 1
                     Buffers: shared hit=57
 Planning:
   Buffers: shared hit=80
 Planning Time: 0.930 ms
 Execution Time: 101.237 ms
(76 rows)

