add remove split language show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
100000 rows affected
QUERY PLAN
Nested Loop (cost=17.80..1327.51 rows=50000 width=4) (actual time=0.125..0.354 rows=103 loops=1)
  -> HashAggregate (cost=17.51..19.51 rows=200 width=4) (actual time=0.061..0.079 rows=103 loops=1)
        Group Key: generate_series(1, 103)
        -> Result (cost=0.00..5.01 rows=1000 width=0) (actual time=0.027..0.034 rows=103 loops=1)
  -> Index Only Scan using t_pkey on t (cost=0.29..6.53 rows=1 width=4) (actual time=0.002..0.002 rows=1 loops=103)
        Index Cond: (t_id = (generate_series(1, 103)))
        Heap Fetches: 103
Planning time: 0.543 ms
Execution time: 0.421 ms
QUERY PLAN
Bitmap Heap Scan on t (cost=387.53..648.46 rows=105 width=4) (actual time=0.107..0.114 rows=105 loops=1)
  Recheck Cond: (t_id = ANY ('{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105}'::integer[]))
  Heap Blocks: exact=1
  -> Bitmap Index Scan on t_pkey (cost=0.00..387.50 rows=105 width=0) (actual time=0.102..0.102 rows=105 loops=1)
        Index Cond: (t_id = ANY ('{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105}'::integer[]))
Planning time: 0.130 ms
Execution time: 0.155 ms