                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390965.84..390965.85 rows=1 width=8) (actual time=88.840..88.847 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8107.77..390162.92 rows=321168 width=0) (actual time=35.022..70.458 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=8107.77..8107.77 rows=323609 width=0) (actual time=34.156..34.162 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..434.96 rows=20652 width=0) (actual time=2.206..2.206 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..464.63 rows=22019 width=0) (actual time=2.277..2.278 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..442.24 rows=20980 width=0) (actual time=2.481..2.481 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..442.16 rows=20972 width=0) (actual time=2.135..2.135 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..451.32 rows=21488 width=0) (actual time=2.249..2.249 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..389.16 rows=18472 width=0) (actual time=2.224..2.224 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..389.35 rows=18491 width=0) (actual time=2.035..2.035 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..487.41 rows=23097 width=0) (actual time=2.053..2.053 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..435.24 rows=20680 width=0) (actual time=2.029..2.029 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..479.82 rows=22738 width=0) (actual time=2.094..2.094 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..412.70 rows=19626 width=0) (actual time=2.269..2.269 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..380.08 rows=17964 width=0) (actual time=2.037..2.037 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..448.55 rows=21211 width=0) (actual time=2.068..2.068 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..320.48 rows=15204 width=0) (actual time=2.004..2.004 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..365.57 rows=17313 width=0) (actual time=1.988..1.988 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..479.47 rows=22703 width=0) (actual time=2.001..2.001 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.640 ms
 Execution Time: 89.130 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390965.84..390965.85 rows=1 width=8) (actual time=80.076..80.084 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8107.77..390162.92 rows=321168 width=0) (actual time=27.408..62.117 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=8107.77..8107.77 rows=323609 width=0) (actual time=26.717..26.723 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..434.96 rows=20652 width=0) (actual time=1.784..1.784 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..464.63 rows=22019 width=0) (actual time=1.647..1.647 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..442.24 rows=20980 width=0) (actual time=1.652..1.652 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..442.16 rows=20972 width=0) (actual time=1.615..1.615 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..451.32 rows=21488 width=0) (actual time=1.627..1.627 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..389.16 rows=18472 width=0) (actual time=1.750..1.750 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..389.35 rows=18491 width=0) (actual time=1.634..1.634 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..487.41 rows=23097 width=0) (actual time=1.606..1.607 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..435.24 rows=20680 width=0) (actual time=1.676..1.677 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..479.82 rows=22738 width=0) (actual time=1.699..1.699 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..412.70 rows=19626 width=0) (actual time=1.893..1.893 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..380.08 rows=17964 width=0) (actual time=1.640..1.640 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..448.55 rows=21211 width=0) (actual time=1.595..1.595 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..320.48 rows=15204 width=0) (actual time=1.599..1.599 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..365.57 rows=17313 width=0) (actual time=1.669..1.669 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..479.47 rows=22703 width=0) (actual time=1.623..1.623 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.531 ms
 Execution Time: 80.375 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390965.84..390965.85 rows=1 width=8) (actual time=87.908..87.916 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8107.77..390162.92 rows=321168 width=0) (actual time=34.639..69.343 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=8107.77..8107.77 rows=323609 width=0) (actual time=33.753..33.759 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..434.96 rows=20652 width=0) (actual time=2.016..2.016 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..464.63 rows=22019 width=0) (actual time=2.117..2.117 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..442.24 rows=20980 width=0) (actual time=2.099..2.099 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..442.16 rows=20972 width=0) (actual time=1.986..1.987 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..451.32 rows=21488 width=0) (actual time=2.058..2.059 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..389.16 rows=18472 width=0) (actual time=2.152..2.152 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..389.35 rows=18491 width=0) (actual time=2.033..2.033 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..487.41 rows=23097 width=0) (actual time=2.081..2.081 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..435.24 rows=20680 width=0) (actual time=2.257..2.257 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..479.82 rows=22738 width=0) (actual time=2.197..2.197 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..412.70 rows=19626 width=0) (actual time=2.364..2.364 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..380.08 rows=17964 width=0) (actual time=2.080..2.080 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..448.55 rows=21211 width=0) (actual time=2.083..2.083 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..320.48 rows=15204 width=0) (actual time=2.039..2.039 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..365.57 rows=17313 width=0) (actual time=2.088..2.088 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..479.47 rows=22703 width=0) (actual time=2.092..2.093 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.662 ms
 Execution Time: 88.227 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390965.84..390965.85 rows=1 width=8) (actual time=98.308..98.315 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8107.77..390162.92 rows=321168 width=0) (actual time=47.656..80.726 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=8107.77..8107.77 rows=323609 width=0) (actual time=46.713..46.720 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..434.96 rows=20652 width=0) (actual time=2.983..2.984 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..464.63 rows=22019 width=0) (actual time=2.959..2.959 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..442.24 rows=20980 width=0) (actual time=3.315..3.315 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..442.16 rows=20972 width=0) (actual time=2.517..2.517 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..451.32 rows=21488 width=0) (actual time=2.313..2.313 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..389.16 rows=18472 width=0) (actual time=2.919..2.919 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..389.35 rows=18491 width=0) (actual time=2.685..2.685 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..487.41 rows=23097 width=0) (actual time=2.523..2.523 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..435.24 rows=20680 width=0) (actual time=3.545..3.545 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..479.82 rows=22738 width=0) (actual time=3.008..3.008 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..412.70 rows=19626 width=0) (actual time=3.828..3.828 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..380.08 rows=17964 width=0) (actual time=3.228..3.229 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..448.55 rows=21211 width=0) (actual time=2.920..2.920 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..320.48 rows=15204 width=0) (actual time=2.926..2.926 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..365.57 rows=17313 width=0) (actual time=2.259..2.259 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..479.47 rows=22703 width=0) (actual time=2.772..2.772 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.968 ms
 Execution Time: 98.661 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=390965.84..390965.85 rows=1 width=8) (actual time=87.807..87.815 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8107.77..390162.92 rows=321168 width=0) (actual time=34.668..69.261 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=8107.77..8107.77 rows=323609 width=0) (actual time=33.755..33.763 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..434.96 rows=20652 width=0) (actual time=2.045..2.045 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..464.63 rows=22019 width=0) (actual time=2.079..2.079 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..442.24 rows=20980 width=0) (actual time=2.280..2.281 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..442.16 rows=20972 width=0) (actual time=2.092..2.093 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..451.32 rows=21488 width=0) (actual time=2.305..2.305 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..389.16 rows=18472 width=0) (actual time=2.201..2.201 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..389.35 rows=18491 width=0) (actual time=2.047..2.047 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..487.41 rows=23097 width=0) (actual time=2.028..2.028 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..435.24 rows=20680 width=0) (actual time=2.077..2.077 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..479.82 rows=22738 width=0) (actual time=2.107..2.107 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..412.70 rows=19626 width=0) (actual time=2.339..2.340 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..380.08 rows=17964 width=0) (actual time=2.017..2.017 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..448.55 rows=21211 width=0) (actual time=1.992..1.992 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..320.48 rows=15204 width=0) (actual time=2.030..2.030 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..365.57 rows=17313 width=0) (actual time=2.049..2.050 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..479.47 rows=22703 width=0) (actual time=2.058..2.058 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.670 ms
 Execution Time: 88.113 ms
(76 rows)

