                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=389685.20..389685.21 rows=1 width=8) (actual time=86.011..86.027 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8005.91..388892.51 rows=317077 width=0) (actual time=35.807..68.785 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=8005.91..8005.91 rows=319457 width=0) (actual time=34.913..34.928 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..372.07 rows=17563 width=0) (actual time=2.222..2.222 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..426.74 rows=20230 width=0) (actual time=2.180..2.180 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..420.46 rows=20002 width=0) (actual time=2.199..2.199 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..433.47 rows=20503 width=0) (actual time=2.086..2.086 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..448.68 rows=21224 width=0) (actual time=2.133..2.133 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..433.32 rows=20488 width=0) (actual time=2.230..2.230 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..426.84 rows=20240 width=0) (actual time=2.079..2.079 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..382.55 rows=18211 width=0) (actual time=2.101..2.101 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..428.09 rows=20365 width=0) (actual time=2.129..2.129 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..432.73 rows=20429 width=0) (actual time=2.209..2.217 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..434.83 rows=20639 width=0) (actual time=2.627..2.627 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..381.70 rows=18126 width=0) (actual time=2.094..2.095 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..457.91 rows=21747 width=0) (actual time=2.121..2.121 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..420.57 rows=20013 width=0) (actual time=2.180..2.180 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..426.64 rows=20220 width=0) (actual time=2.156..2.156 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..411.04 rows=19460 width=0) (actual time=2.163..2.163 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.683 ms
 Execution Time: 86.337 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=389685.20..389685.21 rows=1 width=8) (actual time=93.491..93.498 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8005.91..388892.51 rows=317077 width=0) (actual time=42.745..76.289 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=8005.91..8005.91 rows=319457 width=0) (actual time=42.040..42.046 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..372.07 rows=17563 width=0) (actual time=2.889..2.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..426.74 rows=20230 width=0) (actual time=2.839..2.839 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..420.46 rows=20002 width=0) (actual time=2.929..2.929 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..433.47 rows=20503 width=0) (actual time=2.753..2.753 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..448.68 rows=21224 width=0) (actual time=2.815..2.815 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..433.32 rows=20488 width=0) (actual time=2.764..2.765 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..426.84 rows=20240 width=0) (actual time=2.606..2.606 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..382.55 rows=18211 width=0) (actual time=2.974..2.974 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..428.09 rows=20365 width=0) (actual time=2.996..2.996 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..432.73 rows=20429 width=0) (actual time=3.383..3.383 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..434.83 rows=20639 width=0) (actual time=3.230..3.230 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..381.70 rows=18126 width=0) (actual time=2.938..2.938 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..457.91 rows=21747 width=0) (actual time=1.756..1.756 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..420.57 rows=20013 width=0) (actual time=1.754..1.754 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..426.64 rows=20220 width=0) (actual time=1.706..1.706 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..411.04 rows=19460 width=0) (actual time=1.698..1.698 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.862 ms
 Execution Time: 93.862 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=389685.20..389685.21 rows=1 width=8) (actual time=119.236..119.243 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8005.91..388892.51 rows=317077 width=0) (actual time=60.819..98.979 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=8005.91..8005.91 rows=319457 width=0) (actual time=59.686..59.692 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..372.07 rows=17563 width=0) (actual time=3.676..3.676 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..426.74 rows=20230 width=0) (actual time=3.681..3.681 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..420.46 rows=20002 width=0) (actual time=3.883..3.883 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..433.47 rows=20503 width=0) (actual time=3.723..3.723 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..448.68 rows=21224 width=0) (actual time=3.706..3.707 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..433.32 rows=20488 width=0) (actual time=3.887..3.887 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..426.84 rows=20240 width=0) (actual time=3.664..3.664 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..382.55 rows=18211 width=0) (actual time=3.628..3.628 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..428.09 rows=20365 width=0) (actual time=3.664..3.664 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..432.73 rows=20429 width=0) (actual time=5.168..5.168 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..434.83 rows=20639 width=0) (actual time=4.147..4.147 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..381.70 rows=18126 width=0) (actual time=3.616..3.616 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..457.91 rows=21747 width=0) (actual time=3.602..3.602 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..420.57 rows=20013 width=0) (actual time=3.591..3.591 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..426.64 rows=20220 width=0) (actual time=3.315..3.315 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..411.04 rows=19460 width=0) (actual time=2.726..2.726 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.007 ms
 Execution Time: 119.626 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=389685.20..389685.21 rows=1 width=8) (actual time=91.292..91.299 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8005.91..388892.51 rows=317077 width=0) (actual time=37.518..72.990 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=8005.91..8005.91 rows=319457 width=0) (actual time=36.632..36.639 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..372.07 rows=17563 width=0) (actual time=2.093..2.093 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..426.74 rows=20230 width=0) (actual time=2.151..2.151 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..420.46 rows=20002 width=0) (actual time=2.292..2.292 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..433.47 rows=20503 width=0) (actual time=2.234..2.234 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..448.68 rows=21224 width=0) (actual time=2.633..2.633 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..433.32 rows=20488 width=0) (actual time=2.708..2.708 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..426.84 rows=20240 width=0) (actual time=2.142..2.143 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..382.55 rows=18211 width=0) (actual time=2.129..2.129 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..428.09 rows=20365 width=0) (actual time=2.178..2.178 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..432.73 rows=20429 width=0) (actual time=2.934..2.934 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..434.83 rows=20639 width=0) (actual time=2.466..2.466 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..381.70 rows=18126 width=0) (actual time=2.089..2.089 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..457.91 rows=21747 width=0) (actual time=2.133..2.133 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..420.57 rows=20013 width=0) (actual time=2.075..2.075 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..426.64 rows=20220 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..411.04 rows=19460 width=0) (actual time=2.279..2.279 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.641 ms
 Execution Time: 91.649 ms
(76 rows)

                                                                                                                                                                                                                                                                                                                                                   QUERY PLAN                                                                                                                                                                                                                                                                                                                                                    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=389685.20..389685.21 rows=1 width=8) (actual time=119.295..119.302 rows=1.00 loops=1)
   Buffers: shared hit=6454
   ->  Bitmap Heap Scan on large_table  (cost=8005.91..388892.51 rows=317077 width=0) (actual time=64.637..100.205 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=8005.91..8005.91 rows=319457 width=0) (actual time=63.323..63.328 rows=0.00 loops=1)
               Buffers: shared hit=921
               ->  Bitmap Index Scan on large_table_id_idx  (cost=0.00..372.07 rows=17563 width=0) (actual time=4.303..4.303 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..426.74 rows=20230 width=0) (actual time=4.463..4.463 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..420.46 rows=20002 width=0) (actual time=4.166..4.166 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..433.47 rows=20503 width=0) (actual time=4.081..4.081 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..448.68 rows=21224 width=0) (actual time=4.208..4.208 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..433.32 rows=20488 width=0) (actual time=4.271..4.271 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..426.84 rows=20240 width=0) (actual time=3.946..3.946 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..382.55 rows=18211 width=0) (actual time=4.178..4.179 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..428.09 rows=20365 width=0) (actual time=4.168..4.168 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..432.73 rows=20429 width=0) (actual time=5.327..5.327 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..434.83 rows=20639 width=0) (actual time=4.424..4.425 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..381.70 rows=18126 width=0) (actual time=4.012..4.013 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..457.91 rows=21747 width=0) (actual time=3.000..3.001 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..420.57 rows=20013 width=0) (actual time=2.830..2.830 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..426.64 rows=20220 width=0) (actual time=3.132..3.132 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..411.04 rows=19460 width=0) (actual time=2.795..2.796 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.268 ms
 Execution Time: 119.771 ms
(76 rows)

