@@ -43,6 +43,33 @@ ORDER BY devices.device_id, win.id
4343 -> Index Only Scan using _hyper_X_X_chunk_metrics_device_id_time_idx on _hyper_X_X_chunk (actual rows=360.00 loops=3)
4444 Index Cond: ((device_id = devices.device_id) AND ("time" >= "*VALUES*".column2) AND ("time" < "*VALUES*".column3) AND ("time" > (now() - '@ 100 years'::interval)))
4545
46+ :PREFIX
47+ SELECT time FROM unnest(array['2000-01-10 1:00+0'::timestamptz]) AS vars(v)
48+ JOIN metrics ON time = vars.v;
49+ --- QUERY PLAN ---
50+ Nested Loop (actual rows=5.00 loops=1)
51+ -> Function Scan on unnest vars (actual rows=1.00 loops=1)
52+ -> Custom Scan (ChunkAppend) on metrics (actual rows=5.00 loops=1)
53+ Chunks excluded during runtime: 2
54+ -> Index Only Scan using _hyper_X_X_chunk_metrics_time_idx on _hyper_X_X_chunk (never executed)
55+ Index Cond: ("time" = vars.v)
56+ -> Index Only Scan using _hyper_X_X_chunk_metrics_time_idx on _hyper_X_X_chunk (actual rows=5.00 loops=1)
57+ Index Cond: ("time" = vars.v)
58+ -> Index Only Scan using _hyper_X_X_chunk_metrics_time_idx on _hyper_X_X_chunk (never executed)
59+ Index Cond: ("time" = vars.v)
60+
61+ :PREFIX
62+ SELECT count(s.w) FROM unnest(array[1]::int[]) AS vars(v)
63+ LEFT JOIN LATERAL (SELECT vars.v AS w FROM metrics) s ON true;
64+ --- QUERY PLAN ---
65+ Aggregate (actual rows=1.00 loops=1)
66+ -> Nested Loop Left Join (actual rows=68370.00 loops=1)
67+ -> Function Scan on unnest vars (actual rows=1.00 loops=1)
68+ -> Append (actual rows=68370.00 loops=1)
69+ -> Seq Scan on _hyper_X_X_chunk (actual rows=17990.00 loops=1)
70+ -> Seq Scan on _hyper_X_X_chunk (actual rows=25190.00 loops=1)
71+ -> Seq Scan on _hyper_X_X_chunk (actual rows=25190.00 loops=1)
72+
4673RESET enable_hashjoin;
4774RESET enable_mergejoin;
4875RESET enable_material;
0 commit comments