                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=387940.72..387940.73 rows=1 width=8) (actual time=93.800..93.806 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=7869.70..387161.48 rows=311694 width=0) (actual time=37.229..74.245 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=7869.70..7869.70 rows=313993 width=0) (actual time=36.219..36.224 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.40 rows=18796 width=0) (actual time=2.400..2.400 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.77 rows=19433 width=0) (actual time=2.272..2.272 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..389.66 rows=18522 width=0) (actual time=2.311..2.311 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..395.72 rows=18728 width=0) (actual time=2.188..2.188 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..381.23 rows=18079 width=0) (actual time=2.326..2.326 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..432.93 rows=20449 width=0) (actual time=2.435..2.435 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..456.57 rows=21613 width=0) (actual time=2.215..2.215 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..412.94 rows=19650 width=0) (actual time=2.180..2.180 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..411.27 rows=19483 width=0) (actual time=2.236..2.236 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..427.13 rows=20269 width=0) (actual time=2.302..2.302 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..482.08 rows=22964 width=0) (actual time=2.469..2.469 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..349.34 rows=16490 width=0) (actual time=2.162..2.162 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..434.65 rows=20621 width=0) (actual time=2.201..2.201 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..364.74 rows=17230 width=0) (actual time=2.175..2.175 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..450.82 rows=21438 width=0) (actual time=2.169..2.169 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..426.71 rows=20227 width=0) (actual time=2.172..2.172 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.675 ms
 Execution Time: 94.121 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=387940.72..387940.73 rows=1 width=8) (actual time=89.297..89.304 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=7869.70..387161.48 rows=311694 width=0) (actual time=37.002..71.191 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=7869.70..7869.70 rows=313993 width=0) (actual time=36.114..36.121 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.40 rows=18796 width=0) (actual time=2.358..2.358 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.77 rows=19433 width=0) (actual time=2.207..2.207 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..389.66 rows=18522 width=0) (actual time=2.250..2.250 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..395.72 rows=18728 width=0) (actual time=2.195..2.195 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..381.23 rows=18079 width=0) (actual time=2.289..2.289 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..432.93 rows=20449 width=0) (actual time=2.305..2.305 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..456.57 rows=21613 width=0) (actual time=2.204..2.204 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..412.94 rows=19650 width=0) (actual time=2.171..2.171 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..411.27 rows=19483 width=0) (actual time=2.226..2.226 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..427.13 rows=20269 width=0) (actual time=2.266..2.266 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..482.08 rows=22964 width=0) (actual time=2.434..2.434 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..349.34 rows=16490 width=0) (actual time=2.151..2.151 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..434.65 rows=20621 width=0) (actual time=2.316..2.316 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..364.74 rows=17230 width=0) (actual time=2.169..2.169 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..450.82 rows=21438 width=0) (actual time=2.332..2.332 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..426.71 rows=20227 width=0) (actual time=2.236..2.236 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.659 ms
 Execution Time: 89.600 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=387940.72..387940.73 rows=1 width=8) (actual time=92.427..92.434 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=7869.70..387161.48 rows=311694 width=0) (actual time=43.152..75.204 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=7869.70..7869.70 rows=313993 width=0) (actual time=42.282..42.288 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.40 rows=18796 width=0) (actual time=2.683..2.683 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.77 rows=19433 width=0) (actual time=2.748..2.748 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..389.66 rows=18522 width=0) (actual time=2.777..2.777 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..395.72 rows=18728 width=0) (actual time=2.643..2.643 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..381.23 rows=18079 width=0) (actual time=2.740..2.740 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..432.93 rows=20449 width=0) (actual time=2.834..2.834 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..456.57 rows=21613 width=0) (actual time=2.667..2.667 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..412.94 rows=19650 width=0) (actual time=2.657..2.657 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..411.27 rows=19483 width=0) (actual time=2.725..2.725 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..427.13 rows=20269 width=0) (actual time=2.798..2.798 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..482.08 rows=22964 width=0) (actual time=3.191..3.191 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..349.34 rows=16490 width=0) (actual time=2.651..2.651 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..434.65 rows=20621 width=0) (actual time=2.572..2.572 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..364.74 rows=17230 width=0) (actual time=2.202..2.202 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..450.82 rows=21438 width=0) (actual time=2.218..2.218 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..426.71 rows=20227 width=0) (actual time=2.171..2.171 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.679 ms
 Execution Time: 92.732 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=387940.72..387940.73 rows=1 width=8) (actual time=78.115..78.133 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=7869.70..387161.48 rows=311694 width=0) (actual time=29.490..60.981 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=7869.70..7869.70 rows=313993 width=0) (actual time=28.796..28.812 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.40 rows=18796 width=0) (actual time=1.889..1.890 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.77 rows=19433 width=0) (actual time=1.782..1.783 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..389.66 rows=18522 width=0) (actual time=1.800..1.800 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..395.72 rows=18728 width=0) (actual time=1.715..1.715 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..381.23 rows=18079 width=0) (actual time=1.751..1.751 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..432.93 rows=20449 width=0) (actual time=1.841..1.841 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..456.57 rows=21613 width=0) (actual time=1.742..1.742 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..412.94 rows=19650 width=0) (actual time=1.729..1.730 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..411.27 rows=19483 width=0) (actual time=1.821..1.821 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..427.13 rows=20269 width=0) (actual time=1.836..1.836 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..482.08 rows=22964 width=0) (actual time=2.085..2.085 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..349.34 rows=16490 width=0) (actual time=1.753..1.754 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..434.65 rows=20621 width=0) (actual time=1.849..1.849 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..364.74 rows=17230 width=0) (actual time=1.725..1.725 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..450.82 rows=21438 width=0) (actual time=1.725..1.725 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..426.71 rows=20227 width=0) (actual time=1.747..1.747 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.499 ms
 Execution Time: 78.383 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=387940.72..387940.73 rows=1 width=8) (actual time=77.829..77.834 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=7869.70..387161.48 rows=311694 width=0) (actual time=29.449..60.877 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=7869.70..7869.70 rows=313993 width=0) (actual time=28.760..28.763 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..396.40 rows=18796 width=0) (actual time=1.785..1.785 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.77 rows=19433 width=0) (actual time=1.765..1.765 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..389.66 rows=18522 width=0) (actual time=1.862..1.862 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..395.72 rows=18728 width=0) (actual time=1.729..1.729 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..381.23 rows=18079 width=0) (actual time=1.775..1.775 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..432.93 rows=20449 width=0) (actual time=1.830..1.830 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..456.57 rows=21613 width=0) (actual time=1.723..1.723 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..412.94 rows=19650 width=0) (actual time=1.754..1.754 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..411.27 rows=19483 width=0) (actual time=1.762..1.762 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..427.13 rows=20269 width=0) (actual time=1.812..1.812 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..482.08 rows=22964 width=0) (actual time=2.030..2.031 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..349.34 rows=16490 width=0) (actual time=1.745..1.745 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..434.65 rows=20621 width=0) (actual time=1.758..1.758 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..364.74 rows=17230 width=0) (actual time=1.724..1.724 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..450.82 rows=21438 width=0) (actual time=1.959..1.959 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..426.71 rows=20227 width=0) (actual time=1.742..1.742 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.596 ms
 Execution Time: 78.068 ms
(76 rows)

