diff --git a/test/expected/append-14.out b/test/expected/append-14.out index 8eca55177b4..236def1447e 100644 --- a/test/expected/append-14.out +++ b/test/expected/append-14.out @@ -506,13 +506,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -522,13 +522,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -539,13 +539,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test Const OP Var @@ -557,13 +557,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -573,13 +573,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -590,13 +590,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test 2 constraints @@ -608,10 +608,10 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -621,10 +621,10 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -635,10 +635,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 288 + Heap Fetches: N (9 rows) -- test constraint_exclusion with timestamp time dimension and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -650,13 +650,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -666,13 +666,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -683,13 +683,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test Const OP Var @@ -701,13 +701,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -717,13 +717,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -734,13 +734,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test 2 constraints @@ -752,10 +752,10 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -765,10 +765,10 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -779,10 +779,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 288 + Heap Fetches: N (9 rows) -- test constraint_exclusion with timestamptz time dimension and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -795,13 +795,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -812,13 +812,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -828,13 +828,13 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4611 + Heap Fetches: N (11 rows) -- test Const OP Var @@ -847,13 +847,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -864,13 +864,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -880,13 +880,13 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4611 + Heap Fetches: N (11 rows) -- test 2 constraints @@ -899,10 +899,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1152 + Heap Fetches: N (9 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -913,10 +913,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1152 + Heap Fetches: N (9 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -926,10 +926,10 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1152 + Heap Fetches: N (8 rows) -- test constraint_exclusion with space partitioning and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -943,35 +943,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamp ORDER BY time; @@ -983,35 +983,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz ORDER BY time; @@ -1023,24 +1023,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test Const OP Var @@ -1054,35 +1054,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE '2000-01-10'::timestamp < time ORDER BY time; @@ -1094,35 +1094,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE '2000-01-10'::timestamptz < time ORDER BY time; @@ -1134,24 +1134,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test 2 constraints @@ -1165,35 +1165,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamp AND time < '2000-01-15'::timestamp ORDER BY time; @@ -1205,35 +1205,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND time < '2000-01-15'::timestamptz ORDER BY time; @@ -1245,24 +1245,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test filtering on space partition @@ -1273,10 +1273,10 @@ reset enable_material; Order: metrics_space."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=767 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 767 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=385 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 385 + Heap Fetches: N (8 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND device_id IN (1,2) ORDER BY time; @@ -1313,10 +1313,10 @@ reset enable_material; Order: metrics_space."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=767 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 767 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=385 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 385 + Heap Fetches: N (8 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND v3 IN (VALUES('1')) ORDER BY time; @@ -1430,35 +1430,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- test CURRENT_TIMESTAMP @@ -1496,35 +1496,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- test now() @@ -1562,35 +1562,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- query with tablesample and planner exclusion @@ -1683,33 +1683,33 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=26787 loops=1) Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=4611 loops=1) - Heap Fetches: 4611 + Heap Fetches: N -> Limit (actual rows=1 loops=26787) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=1 loops=26787) Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=1 loops=4032) Index Cond: ("time" = m1."time") - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_4 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_5 (actual rows=1 loops=4611) Index Cond: ("time" = m1."time") - Heap Fetches: 4611 + Heap Fetches: N (31 rows) -- test runtime exclusion and startup exclusions @@ -1720,25 +1720,25 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=26787 loops=1) Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=4611 loops=1) - Heap Fetches: 4611 + Heap Fetches: N -> Limit (actual rows=0 loops=26787) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=0 loops=26787) Chunks excluded during startup: 3 Chunks excluded during runtime: 1 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=1 loops=4032) Index Cond: (("time" < ('2000-01-10'::cstring)::timestamp with time zone) AND ("time" = m1."time")) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=1 loops=6048) Index Cond: (("time" < ('2000-01-10'::cstring)::timestamp with time zone) AND ("time" = m1."time")) - Heap Fetches: 3744 + Heap Fetches: N (23 rows) -- test runtime exclusion does not activate for constraints on non-partitioning columns @@ -1778,19 +1778,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=1 loops=5) Index Cond: ("time" = g."time") - Heap Fetches: 5 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=1 loops=6) Index Cond: ("time" = g."time") - Heap Fetches: 6 + Heap Fetches: N (20 rows) :PREFIX SELECT * FROM generate_series('2000-01-01'::timestamptz,'2000-02-01'::timestamptz,'1d'::interval) AS g(time) INNER JOIN LATERAL (SELECT time FROM metrics_timestamptz m WHERE time=g.time) m ON true; @@ -1818,19 +1818,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=3 loops=5) Index Cond: ("time" = g."time") - Heap Fetches: 15 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=3 loops=6) Index Cond: ("time" = g."time") - Heap Fetches: 18 + Heap Fetches: N (19 rows) :PREFIX SELECT * FROM generate_series('2000-01-01'::timestamptz,'2000-02-01'::timestamptz,'1d'::interval) AS g(time) INNER JOIN LATERAL (SELECT time FROM metrics_timestamptz m WHERE time>g.time + '1 day' ORDER BY time LIMIT 1) m ON true; @@ -1845,19 +1845,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 2 -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=1 loops=4) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 4 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 5 + Heap Fetches: N (22 rows) -- test runtime exclusion with subquery @@ -1874,34 +1874,34 @@ ORDER BY time DESC, device_id; Order: metrics_timestamptz."time" DESC -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=1 loops=1) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=3 loops=1) Index Cond: ("time" = $1) - Heap Fetches: 3 + Heap Fetches: N (38 rows) -- test runtime exclusion with correlated subquery @@ -1912,10 +1912,10 @@ ORDER BY time DESC, device_id; Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) Index Cond: ("time" < 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=3744 loops=1) Index Cond: ("time" < 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N SubPlan 1 -> Limit (actual rows=1 loops=7776) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=1 loops=7776) @@ -1923,19 +1923,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 3 -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_1 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_2 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_4 (actual rows=1 loops=3741) Index Cond: ("time" < m1."time") - Heap Fetches: 3741 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_5 (actual rows=1 loops=4035) Index Cond: ("time" < m1."time") - Heap Fetches: 4032 + Heap Fetches: N (28 rows) -- test EXISTS @@ -1947,31 +1947,31 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=1003 loops=1) Order: m1."time" DESC -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_1 (actual rows=1003 loops=1) - Heap Fetches: 1003 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_2 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_4 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_5 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Append (actual rows=1 loops=1003) -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_4 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_5 (actual rows=1 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 1000 + Heap Fetches: N (30 rows) -- test constraint exclusion for subqueries with append @@ -1984,10 +1984,10 @@ ORDER BY time DESC, device_id; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (actual rows=4032 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (actual rows=3744 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N (9 rows) -- test constraint exclusion for subqueries with mergeappend @@ -2002,10 +2002,10 @@ ORDER BY time DESC, device_id; Sort Key: _hyper_5_17_chunk.device_id, _hyper_5_17_chunk."time" -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_17_chunk (actual rows=4032 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_18_chunk (actual rows=3744 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N (11 rows) -- test LIMIT pushdown @@ -2017,15 +2017,15 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz (actual rows=1 loops=1) Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N (13 rows) -- aggregates should prevent pushdown @@ -2102,15 +2102,15 @@ SET enable_hashagg TO false; -> Merge Append (actual rows=17859 loops=1) Sort Key: _hyper_5_17_chunk.device_id -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_17_chunk (actual rows=2689 loops=1) - Heap Fetches: 2689 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_18_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_19_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_20_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_21_chunk (actual rows=3075 loops=1) - Heap Fetches: 3075 + Heap Fetches: N (14 rows) :PREFIX SELECT DISTINCT device_id FROM metrics_space ORDER BY device_id LIMIT 3; @@ -2121,23 +2121,23 @@ SET enable_hashagg TO false; -> Merge Append (actual rows=7491 loops=1) Sort Key: _hyper_6_22_chunk.device_id -> Index Only Scan using _hyper_6_22_chunk_metrics_space_device_id_time_idx on _hyper_6_22_chunk (actual rows=1345 loops=1) - Heap Fetches: 1345 + Heap Fetches: N -> Index Only Scan using _hyper_6_23_chunk_metrics_space_device_id_time_idx on _hyper_6_23_chunk (actual rows=1345 loops=1) - Heap Fetches: 1345 + Heap Fetches: N -> Index Only Scan using _hyper_6_24_chunk_metrics_space_device_id_time_idx on _hyper_6_24_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=2017 loops=1) - Heap Fetches: 2017 + Heap Fetches: N -> Index Only Scan using _hyper_6_26_chunk_metrics_space_device_id_time_idx on _hyper_6_26_chunk (actual rows=2017 loops=1) - Heap Fetches: 2017 + Heap Fetches: N -> Index Only Scan using _hyper_6_27_chunk_metrics_space_device_id_time_idx on _hyper_6_27_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=386 loops=1) - Heap Fetches: 386 + Heap Fetches: N -> Index Only Scan using _hyper_6_29_chunk_metrics_space_device_id_time_idx on _hyper_6_29_chunk (actual rows=386 loops=1) - Heap Fetches: 386 + Heap Fetches: N -> Index Only Scan using _hyper_6_30_chunk_metrics_space_device_id_time_idx on _hyper_6_30_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N (22 rows) RESET enable_hashagg; @@ -2184,10 +2184,10 @@ DROP INDEX :INDEX_NAME; Rows Removed by Filter: 650 -> Index Only Scan using _hyper_8_36_chunk_join_limit_time_device_id_idx on _hyper_8_36_chunk m2_2 (never executed) Index Cond: ("time" > 'Fri Jan 07 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_8_37_chunk_join_limit_time_device_id_idx on _hyper_8_37_chunk m2_3 (never executed) Index Cond: ("time" > 'Fri Jan 07 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 0 + Heap Fetches: N -> Materialize (actual rows=22 loops=1) -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=19 loops=1) Order: m1."time" diff --git a/test/expected/append-15.out b/test/expected/append-15.out index a1244a5e31a..30fc9a40fd0 100644 --- a/test/expected/append-15.out +++ b/test/expected/append-15.out @@ -508,13 +508,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -524,13 +524,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -541,13 +541,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test Const OP Var @@ -559,13 +559,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -575,13 +575,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -592,13 +592,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test 2 constraints @@ -610,10 +610,10 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -623,10 +623,10 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -637,10 +637,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 288 + Heap Fetches: N (9 rows) -- test constraint_exclusion with timestamp time dimension and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -652,13 +652,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -668,13 +668,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -685,13 +685,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test Const OP Var @@ -703,13 +703,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -719,13 +719,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -736,13 +736,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test 2 constraints @@ -754,10 +754,10 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -767,10 +767,10 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -781,10 +781,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 288 + Heap Fetches: N (9 rows) -- test constraint_exclusion with timestamptz time dimension and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -797,13 +797,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -814,13 +814,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -830,13 +830,13 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4611 + Heap Fetches: N (11 rows) -- test Const OP Var @@ -849,13 +849,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -866,13 +866,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -882,13 +882,13 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4611 + Heap Fetches: N (11 rows) -- test 2 constraints @@ -901,10 +901,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1152 + Heap Fetches: N (9 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -915,10 +915,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1152 + Heap Fetches: N (9 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -928,10 +928,10 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1152 + Heap Fetches: N (8 rows) -- test constraint_exclusion with space partitioning and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -945,35 +945,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamp ORDER BY time; @@ -985,35 +985,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz ORDER BY time; @@ -1025,24 +1025,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test Const OP Var @@ -1056,35 +1056,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE '2000-01-10'::timestamp < time ORDER BY time; @@ -1096,35 +1096,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE '2000-01-10'::timestamptz < time ORDER BY time; @@ -1136,24 +1136,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test 2 constraints @@ -1167,35 +1167,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamp AND time < '2000-01-15'::timestamp ORDER BY time; @@ -1207,35 +1207,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND time < '2000-01-15'::timestamptz ORDER BY time; @@ -1247,24 +1247,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test filtering on space partition @@ -1275,10 +1275,10 @@ reset enable_material; Order: metrics_space."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=767 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 767 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=385 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 385 + Heap Fetches: N (8 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND device_id IN (1,2) ORDER BY time; @@ -1315,10 +1315,10 @@ reset enable_material; Order: metrics_space."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=767 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 767 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=385 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 385 + Heap Fetches: N (8 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND v3 IN (VALUES('1')) ORDER BY time; @@ -1432,35 +1432,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- test CURRENT_TIMESTAMP @@ -1498,35 +1498,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- test now() @@ -1564,35 +1564,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- query with tablesample and planner exclusion @@ -1685,33 +1685,33 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=26787 loops=1) Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=4611 loops=1) - Heap Fetches: 4611 + Heap Fetches: N -> Limit (actual rows=1 loops=26787) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=1 loops=26787) Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=1 loops=4032) Index Cond: ("time" = m1."time") - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_4 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_5 (actual rows=1 loops=4611) Index Cond: ("time" = m1."time") - Heap Fetches: 4611 + Heap Fetches: N (31 rows) -- test runtime exclusion and startup exclusions @@ -1722,25 +1722,25 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=26787 loops=1) Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=4611 loops=1) - Heap Fetches: 4611 + Heap Fetches: N -> Limit (actual rows=0 loops=26787) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=0 loops=26787) Chunks excluded during startup: 3 Chunks excluded during runtime: 1 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=1 loops=4032) Index Cond: (("time" < ('2000-01-10'::cstring)::timestamp with time zone) AND ("time" = m1."time")) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=1 loops=6048) Index Cond: (("time" < ('2000-01-10'::cstring)::timestamp with time zone) AND ("time" = m1."time")) - Heap Fetches: 3744 + Heap Fetches: N (23 rows) -- test runtime exclusion does not activate for constraints on non-partitioning columns @@ -1781,19 +1781,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=1 loops=5) Index Cond: ("time" = g."time") - Heap Fetches: 5 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=1 loops=6) Index Cond: ("time" = g."time") - Heap Fetches: 6 + Heap Fetches: N (21 rows) :PREFIX SELECT * FROM generate_series('2000-01-01'::timestamptz,'2000-02-01'::timestamptz,'1d'::interval) AS g(time) INNER JOIN LATERAL (SELECT time FROM metrics_timestamptz m WHERE time=g.time) m ON true; @@ -1821,19 +1821,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=3 loops=5) Index Cond: ("time" = g."time") - Heap Fetches: 15 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=3 loops=6) Index Cond: ("time" = g."time") - Heap Fetches: 18 + Heap Fetches: N (19 rows) :PREFIX SELECT * FROM generate_series('2000-01-01'::timestamptz,'2000-02-01'::timestamptz,'1d'::interval) AS g(time) INNER JOIN LATERAL (SELECT time FROM metrics_timestamptz m WHERE time>g.time + '1 day' ORDER BY time LIMIT 1) m ON true; @@ -1848,19 +1848,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 2 -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=1 loops=4) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 4 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 5 + Heap Fetches: N (22 rows) -- test runtime exclusion with subquery @@ -1877,34 +1877,34 @@ ORDER BY time DESC, device_id; Order: metrics_timestamptz."time" DESC -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=1 loops=1) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=3 loops=1) Index Cond: ("time" = $1) - Heap Fetches: 3 + Heap Fetches: N (38 rows) -- test runtime exclusion with correlated subquery @@ -1916,10 +1916,10 @@ ORDER BY time DESC, device_id; Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) Index Cond: ("time" < 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=3744 loops=1) Index Cond: ("time" < 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N SubPlan 1 -> Limit (actual rows=1 loops=7776) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=1 loops=7776) @@ -1927,19 +1927,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 3 -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_1 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_2 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_4 (actual rows=1 loops=3741) Index Cond: ("time" < m1."time") - Heap Fetches: 3741 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_5 (actual rows=1 loops=4035) Index Cond: ("time" < m1."time") - Heap Fetches: 4032 + Heap Fetches: N (29 rows) -- test EXISTS @@ -1951,31 +1951,31 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=1003 loops=1) Order: m1."time" DESC -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_1 (actual rows=1003 loops=1) - Heap Fetches: 1003 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_2 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_4 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_5 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Append (actual rows=1 loops=1003) -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_4 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_5 (actual rows=1 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 1000 + Heap Fetches: N (30 rows) -- test constraint exclusion for subqueries with append @@ -1988,10 +1988,10 @@ ORDER BY time DESC, device_id; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (actual rows=4032 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (actual rows=3744 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N (9 rows) -- test constraint exclusion for subqueries with mergeappend @@ -2006,10 +2006,10 @@ ORDER BY time DESC, device_id; Sort Key: _hyper_5_17_chunk.device_id, _hyper_5_17_chunk."time" -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_17_chunk (actual rows=4032 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_18_chunk (actual rows=3744 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N (11 rows) -- test LIMIT pushdown @@ -2021,15 +2021,15 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz (actual rows=1 loops=1) Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N (13 rows) -- aggregates should prevent pushdown @@ -2106,15 +2106,15 @@ SET enable_hashagg TO false; -> Merge Append (actual rows=17859 loops=1) Sort Key: _hyper_5_17_chunk.device_id -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_17_chunk (actual rows=2689 loops=1) - Heap Fetches: 2689 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_18_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_19_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_20_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_21_chunk (actual rows=3075 loops=1) - Heap Fetches: 3075 + Heap Fetches: N (14 rows) :PREFIX SELECT DISTINCT device_id FROM metrics_space ORDER BY device_id LIMIT 3; @@ -2125,23 +2125,23 @@ SET enable_hashagg TO false; -> Merge Append (actual rows=7491 loops=1) Sort Key: _hyper_6_22_chunk.device_id -> Index Only Scan using _hyper_6_22_chunk_metrics_space_device_id_time_idx on _hyper_6_22_chunk (actual rows=1345 loops=1) - Heap Fetches: 1345 + Heap Fetches: N -> Index Only Scan using _hyper_6_23_chunk_metrics_space_device_id_time_idx on _hyper_6_23_chunk (actual rows=1345 loops=1) - Heap Fetches: 1345 + Heap Fetches: N -> Index Only Scan using _hyper_6_24_chunk_metrics_space_device_id_time_idx on _hyper_6_24_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=2017 loops=1) - Heap Fetches: 2017 + Heap Fetches: N -> Index Only Scan using _hyper_6_26_chunk_metrics_space_device_id_time_idx on _hyper_6_26_chunk (actual rows=2017 loops=1) - Heap Fetches: 2017 + Heap Fetches: N -> Index Only Scan using _hyper_6_27_chunk_metrics_space_device_id_time_idx on _hyper_6_27_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=386 loops=1) - Heap Fetches: 386 + Heap Fetches: N -> Index Only Scan using _hyper_6_29_chunk_metrics_space_device_id_time_idx on _hyper_6_29_chunk (actual rows=386 loops=1) - Heap Fetches: 386 + Heap Fetches: N -> Index Only Scan using _hyper_6_30_chunk_metrics_space_device_id_time_idx on _hyper_6_30_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N (22 rows) RESET enable_hashagg; @@ -2188,10 +2188,10 @@ DROP INDEX :INDEX_NAME; Rows Removed by Filter: 650 -> Index Only Scan using _hyper_8_36_chunk_join_limit_time_device_id_idx on _hyper_8_36_chunk m2_2 (never executed) Index Cond: ("time" > 'Fri Jan 07 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_8_37_chunk_join_limit_time_device_id_idx on _hyper_8_37_chunk m2_3 (never executed) Index Cond: ("time" > 'Fri Jan 07 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 0 + Heap Fetches: N -> Materialize (actual rows=22 loops=1) -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=19 loops=1) Order: m1."time" diff --git a/test/expected/append-16.out b/test/expected/append-16.out index dd99013f748..4278864dbdb 100644 --- a/test/expected/append-16.out +++ b/test/expected/append-16.out @@ -508,13 +508,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -524,13 +524,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -541,13 +541,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test Const OP Var @@ -559,13 +559,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -575,13 +575,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -592,13 +592,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test 2 constraints @@ -610,10 +610,10 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -623,10 +623,10 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -637,10 +637,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 288 + Heap Fetches: N (9 rows) -- test constraint_exclusion with timestamp time dimension and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -652,13 +652,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -668,13 +668,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -685,13 +685,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test Const OP Var @@ -703,13 +703,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -719,13 +719,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -736,13 +736,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test 2 constraints @@ -754,10 +754,10 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -767,10 +767,10 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -781,10 +781,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 288 + Heap Fetches: N (9 rows) -- test constraint_exclusion with timestamptz time dimension and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -797,13 +797,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -814,13 +814,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -830,13 +830,13 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4611 + Heap Fetches: N (11 rows) -- test Const OP Var @@ -849,13 +849,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -866,13 +866,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -882,13 +882,13 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4611 + Heap Fetches: N (11 rows) -- test 2 constraints @@ -901,10 +901,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1152 + Heap Fetches: N (9 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -915,10 +915,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1152 + Heap Fetches: N (9 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -928,10 +928,10 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1152 + Heap Fetches: N (8 rows) -- test constraint_exclusion with space partitioning and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -945,35 +945,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamp ORDER BY time; @@ -985,35 +985,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz ORDER BY time; @@ -1025,24 +1025,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test Const OP Var @@ -1056,35 +1056,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE '2000-01-10'::timestamp < time ORDER BY time; @@ -1096,35 +1096,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE '2000-01-10'::timestamptz < time ORDER BY time; @@ -1136,24 +1136,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test 2 constraints @@ -1167,35 +1167,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamp AND time < '2000-01-15'::timestamp ORDER BY time; @@ -1207,35 +1207,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND time < '2000-01-15'::timestamptz ORDER BY time; @@ -1247,24 +1247,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test filtering on space partition @@ -1275,10 +1275,10 @@ reset enable_material; Order: metrics_space."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=767 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 767 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=385 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 385 + Heap Fetches: N (8 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND device_id IN (1,2) ORDER BY time; @@ -1315,10 +1315,10 @@ reset enable_material; Order: metrics_space."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=767 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 767 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=385 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 385 + Heap Fetches: N (8 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND v3 IN (VALUES('1')) ORDER BY time; @@ -1432,35 +1432,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- test CURRENT_TIMESTAMP @@ -1498,35 +1498,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- test now() @@ -1564,35 +1564,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- query with tablesample and planner exclusion @@ -1685,33 +1685,33 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=26787 loops=1) Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=4611 loops=1) - Heap Fetches: 4611 + Heap Fetches: N -> Limit (actual rows=1 loops=26787) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=1 loops=26787) Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=1 loops=4032) Index Cond: ("time" = m1."time") - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_4 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_5 (actual rows=1 loops=4611) Index Cond: ("time" = m1."time") - Heap Fetches: 4611 + Heap Fetches: N (31 rows) -- test runtime exclusion and startup exclusions @@ -1722,25 +1722,25 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=26787 loops=1) Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=4611 loops=1) - Heap Fetches: 4611 + Heap Fetches: N -> Limit (actual rows=0 loops=26787) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=0 loops=26787) Chunks excluded during startup: 3 Chunks excluded during runtime: 1 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=1 loops=4032) Index Cond: (("time" < ('2000-01-10'::cstring)::timestamp with time zone) AND ("time" = m1."time")) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=1 loops=6048) Index Cond: (("time" < ('2000-01-10'::cstring)::timestamp with time zone) AND ("time" = m1."time")) - Heap Fetches: 3744 + Heap Fetches: N (23 rows) -- test runtime exclusion does not activate for constraints on non-partitioning columns @@ -1781,19 +1781,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=1 loops=5) Index Cond: ("time" = g."time") - Heap Fetches: 5 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=1 loops=6) Index Cond: ("time" = g."time") - Heap Fetches: 6 + Heap Fetches: N (21 rows) :PREFIX SELECT * FROM generate_series('2000-01-01'::timestamptz,'2000-02-01'::timestamptz,'1d'::interval) AS g(time) INNER JOIN LATERAL (SELECT time FROM metrics_timestamptz m WHERE time=g.time) m ON true; @@ -1821,19 +1821,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=3 loops=5) Index Cond: ("time" = g."time") - Heap Fetches: 15 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=3 loops=6) Index Cond: ("time" = g."time") - Heap Fetches: 18 + Heap Fetches: N (19 rows) :PREFIX SELECT * FROM generate_series('2000-01-01'::timestamptz,'2000-02-01'::timestamptz,'1d'::interval) AS g(time) INNER JOIN LATERAL (SELECT time FROM metrics_timestamptz m WHERE time>g.time + '1 day' ORDER BY time LIMIT 1) m ON true; @@ -1848,19 +1848,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 2 -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=1 loops=4) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 4 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 5 + Heap Fetches: N (22 rows) -- test runtime exclusion with subquery @@ -1877,34 +1877,34 @@ ORDER BY time DESC, device_id; Order: metrics_timestamptz."time" DESC -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=1 loops=1) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (never executed) Index Cond: ("time" IS NOT NULL) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (never executed) Index Cond: ("time" = $1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=3 loops=1) Index Cond: ("time" = $1) - Heap Fetches: 3 + Heap Fetches: N (38 rows) -- test runtime exclusion with correlated subquery @@ -1916,10 +1916,10 @@ ORDER BY time DESC, device_id; Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) Index Cond: ("time" < 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=3744 loops=1) Index Cond: ("time" < 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N SubPlan 1 -> Limit (actual rows=1 loops=7776) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=1 loops=7776) @@ -1927,19 +1927,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 3 -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_1 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_2 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_4 (actual rows=1 loops=3741) Index Cond: ("time" < m1."time") - Heap Fetches: 3741 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_5 (actual rows=1 loops=4035) Index Cond: ("time" < m1."time") - Heap Fetches: 4032 + Heap Fetches: N (29 rows) -- test EXISTS @@ -1951,31 +1951,31 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=1003 loops=1) Order: m1."time" DESC -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_1 (actual rows=1003 loops=1) - Heap Fetches: 1003 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_2 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_4 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_5 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Append (actual rows=1 loops=1003) -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_4 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_5 (actual rows=1 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 1000 + Heap Fetches: N (30 rows) -- test constraint exclusion for subqueries with append @@ -1988,10 +1988,10 @@ ORDER BY time DESC, device_id; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (actual rows=4032 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (actual rows=3744 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N (9 rows) -- test constraint exclusion for subqueries with mergeappend @@ -2006,10 +2006,10 @@ ORDER BY time DESC, device_id; Sort Key: _hyper_5_17_chunk.device_id, _hyper_5_17_chunk."time" -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_17_chunk (actual rows=4032 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_18_chunk (actual rows=3744 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N (11 rows) -- test LIMIT pushdown @@ -2021,15 +2021,15 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz (actual rows=1 loops=1) Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N (13 rows) -- aggregates should prevent pushdown @@ -2106,15 +2106,15 @@ SET enable_hashagg TO false; -> Merge Append (actual rows=17859 loops=1) Sort Key: _hyper_5_17_chunk.device_id -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_17_chunk (actual rows=2689 loops=1) - Heap Fetches: 2689 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_18_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_19_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_20_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_21_chunk (actual rows=3075 loops=1) - Heap Fetches: 3075 + Heap Fetches: N (14 rows) :PREFIX SELECT DISTINCT device_id FROM metrics_space ORDER BY device_id LIMIT 3; @@ -2125,23 +2125,23 @@ SET enable_hashagg TO false; -> Merge Append (actual rows=7491 loops=1) Sort Key: _hyper_6_22_chunk.device_id -> Index Only Scan using _hyper_6_22_chunk_metrics_space_device_id_time_idx on _hyper_6_22_chunk (actual rows=1345 loops=1) - Heap Fetches: 1345 + Heap Fetches: N -> Index Only Scan using _hyper_6_23_chunk_metrics_space_device_id_time_idx on _hyper_6_23_chunk (actual rows=1345 loops=1) - Heap Fetches: 1345 + Heap Fetches: N -> Index Only Scan using _hyper_6_24_chunk_metrics_space_device_id_time_idx on _hyper_6_24_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=2017 loops=1) - Heap Fetches: 2017 + Heap Fetches: N -> Index Only Scan using _hyper_6_26_chunk_metrics_space_device_id_time_idx on _hyper_6_26_chunk (actual rows=2017 loops=1) - Heap Fetches: 2017 + Heap Fetches: N -> Index Only Scan using _hyper_6_27_chunk_metrics_space_device_id_time_idx on _hyper_6_27_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=386 loops=1) - Heap Fetches: 386 + Heap Fetches: N -> Index Only Scan using _hyper_6_29_chunk_metrics_space_device_id_time_idx on _hyper_6_29_chunk (actual rows=386 loops=1) - Heap Fetches: 386 + Heap Fetches: N -> Index Only Scan using _hyper_6_30_chunk_metrics_space_device_id_time_idx on _hyper_6_30_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N (22 rows) RESET enable_hashagg; @@ -2188,10 +2188,10 @@ DROP INDEX :INDEX_NAME; Rows Removed by Filter: 650 -> Index Only Scan using _hyper_8_36_chunk_join_limit_time_device_id_idx on _hyper_8_36_chunk m2_2 (never executed) Index Cond: ("time" > 'Fri Jan 07 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_8_37_chunk_join_limit_time_device_id_idx on _hyper_8_37_chunk m2_3 (never executed) Index Cond: ("time" > 'Fri Jan 07 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 0 + Heap Fetches: N -> Materialize (actual rows=22 loops=1) -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=19 loops=1) Order: m1."time" diff --git a/test/expected/append-17.out b/test/expected/append-17.out index 4739f5a7d6d..6bc74c45f78 100644 --- a/test/expected/append-17.out +++ b/test/expected/append-17.out @@ -508,13 +508,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -524,13 +524,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -541,13 +541,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test Const OP Var @@ -559,13 +559,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -575,13 +575,13 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_date WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -592,13 +592,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_11_chunk_metrics_date_time_idx on _hyper_3_11_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test 2 constraints @@ -610,10 +610,10 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -623,10 +623,10 @@ reset enable_material; Order: metrics_date."time" -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_date WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -637,10 +637,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_3_9_chunk_metrics_date_time_idx on _hyper_3_9_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1152 + Heap Fetches: N -> Index Only Scan Backward using _hyper_3_10_chunk_metrics_date_time_idx on _hyper_3_10_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 288 + Heap Fetches: N (9 rows) -- test constraint_exclusion with timestamp time dimension and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -652,13 +652,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -668,13 +668,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -685,13 +685,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test Const OP Var @@ -703,13 +703,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -719,13 +719,13 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1441 + Heap Fetches: N (11 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -736,13 +736,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=2016 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 2016 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_16_chunk_metrics_timestamp_time_idx on _hyper_4_16_chunk (actual rows=1441 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1441 + Heap Fetches: N (12 rows) -- test 2 constraints @@ -754,10 +754,10 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -767,10 +767,10 @@ reset enable_material; Order: metrics_timestamp."time" -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 288 + Heap Fetches: N (8 rows) :PREFIX SELECT * FROM metrics_timestamp WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -781,10 +781,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_4_14_chunk_metrics_timestamp_time_idx on _hyper_4_14_chunk (actual rows=1439 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1439 + Heap Fetches: N -> Index Only Scan Backward using _hyper_4_15_chunk_metrics_timestamp_time_idx on _hyper_4_15_chunk (actual rows=288 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 288 + Heap Fetches: N (9 rows) -- test constraint_exclusion with timestamptz time dimension and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -797,13 +797,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamp ORDER BY time; @@ -814,13 +814,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamptz ORDER BY time; @@ -830,13 +830,13 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4611 + Heap Fetches: N (11 rows) -- test Const OP Var @@ -849,13 +849,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > '01-15-2000'::date) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE '2000-01-15'::timestamp < time ORDER BY time; @@ -866,13 +866,13 @@ reset enable_material; Chunks excluded during startup: 2 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 4611 + Heap Fetches: N (12 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE '2000-01-15'::timestamptz < time ORDER BY time; @@ -882,13 +882,13 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=6048 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=4611 loops=1) Index Cond: ("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4611 + Heap Fetches: N (11 rows) -- test 2 constraints @@ -901,10 +901,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > '01-15-2000'::date) AND ("time" < '01-21-2000'::date)) - Heap Fetches: 1152 + Heap Fetches: N (9 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamp AND time < '2000-01-21'::timestamp ORDER BY time; @@ -915,10 +915,10 @@ reset enable_material; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1152 + Heap Fetches: N (9 rows) :PREFIX SELECT time FROM metrics_timestamptz WHERE time > '2000-01-15'::timestamptz AND time < '2000-01-21'::timestamptz ORDER BY time; @@ -928,10 +928,10 @@ reset enable_material; Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (actual rows=4029 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 4029 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (actual rows=1152 loops=1) Index Cond: (("time" > 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Fri Jan 21 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1152 + Heap Fetches: N (8 rows) -- test constraint_exclusion with space partitioning and DATE/TIMESTAMP/TIMESTAMPTZ constraints @@ -945,35 +945,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamp ORDER BY time; @@ -985,35 +985,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz ORDER BY time; @@ -1025,24 +1025,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test Const OP Var @@ -1056,35 +1056,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > '01-10-2000'::date) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE '2000-01-10'::timestamp < time ORDER BY time; @@ -1096,35 +1096,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE '2000-01-10'::timestamptz < time ORDER BY time; @@ -1136,24 +1136,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test 2 constraints @@ -1167,35 +1167,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > '01-10-2000'::date) AND ("time" < '01-15-2000'::date)) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamp AND time < '2000-01-15'::timestamp ORDER BY time; @@ -1207,35 +1207,35 @@ reset enable_material; Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=7670 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000'::timestamp without time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000'::timestamp without time zone)) - Heap Fetches: 770 + Heap Fetches: N (35 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND time < '2000-01-15'::timestamptz ORDER BY time; @@ -1247,24 +1247,24 @@ reset enable_material; Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=3068 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 3068 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=1534 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1534 + Heap Fetches: N -> Merge Append (actual rows=3850 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=1540 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 1540 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=770 loops=1) Index Cond: (("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) AND ("time" < 'Sat Jan 15 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 770 + Heap Fetches: N (24 rows) -- test filtering on space partition @@ -1275,10 +1275,10 @@ reset enable_material; Order: metrics_space."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=767 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 767 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=385 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 385 + Heap Fetches: N (8 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND device_id IN (1,2) ORDER BY time; @@ -1315,10 +1315,10 @@ reset enable_material; Order: metrics_space."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=767 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 767 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=385 loops=1) Index Cond: ((device_id = 1) AND ("time" > 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone)) - Heap Fetches: 385 + Heap Fetches: N (8 rows) :PREFIX SELECT time FROM metrics_space WHERE time > '2000-01-10'::timestamptz AND v3 IN (VALUES('1')) ORDER BY time; @@ -1432,35 +1432,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_DATE) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- test CURRENT_TIMESTAMP @@ -1498,35 +1498,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > CURRENT_TIMESTAMP) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- test now() @@ -1564,35 +1564,35 @@ WHERE time = (VALUES ('2019-12-24' at time zone 'UTC')) Sort Key: _hyper_6_22_chunk."time" -> Index Only Scan Backward using _hyper_6_22_chunk_metrics_space_time_idx on _hyper_6_22_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_23_chunk_metrics_space_time_idx on _hyper_6_23_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_24_chunk_metrics_space_time_idx on _hyper_6_24_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_25_chunk."time" -> Index Only Scan Backward using _hyper_6_25_chunk_metrics_space_time_idx on _hyper_6_25_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_26_chunk_metrics_space_time_idx on _hyper_6_26_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_27_chunk_metrics_space_time_idx on _hyper_6_27_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Merge Append (actual rows=0 loops=1) Sort Key: _hyper_6_28_chunk."time" -> Index Only Scan Backward using _hyper_6_28_chunk_metrics_space_time_idx on _hyper_6_28_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_29_chunk_metrics_space_time_idx on _hyper_6_29_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_6_30_chunk_metrics_space_time_idx on _hyper_6_30_chunk (actual rows=0 loops=1) Index Cond: ("time" > now()) - Heap Fetches: 0 + Heap Fetches: N (35 rows) -- query with tablesample and planner exclusion @@ -1685,33 +1685,33 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=26787 loops=1) Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=4611 loops=1) - Heap Fetches: 4611 + Heap Fetches: N -> Limit (actual rows=1 loops=26787) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=1 loops=26787) Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=1 loops=4032) Index Cond: ("time" = m1."time") - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_4 (actual rows=1 loops=6048) Index Cond: ("time" = m1."time") - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_5 (actual rows=1 loops=4611) Index Cond: ("time" = m1."time") - Heap Fetches: 4611 + Heap Fetches: N (31 rows) -- test runtime exclusion and startup exclusions @@ -1722,25 +1722,25 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=26787 loops=1) Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (actual rows=6048 loops=1) - Heap Fetches: 6048 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=4611 loops=1) - Heap Fetches: 4611 + Heap Fetches: N -> Limit (actual rows=0 loops=26787) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=0 loops=26787) Chunks excluded during startup: 3 Chunks excluded during runtime: 1 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=1 loops=4032) Index Cond: (("time" < ('2000-01-10'::cstring)::timestamp with time zone) AND ("time" = m1."time")) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=1 loops=6048) Index Cond: (("time" < ('2000-01-10'::cstring)::timestamp with time zone) AND ("time" = m1."time")) - Heap Fetches: 3744 + Heap Fetches: N (23 rows) -- test runtime exclusion does not activate for constraints on non-partitioning columns @@ -1781,19 +1781,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=1 loops=5) Index Cond: ("time" = g."time") - Heap Fetches: 5 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=1 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=1 loops=6) Index Cond: ("time" = g."time") - Heap Fetches: 6 + Heap Fetches: N (21 rows) :PREFIX SELECT * FROM generate_series('2000-01-01'::timestamptz,'2000-02-01'::timestamptz,'1d'::interval) AS g(time) INNER JOIN LATERAL (SELECT time FROM metrics_timestamptz m WHERE time=g.time) m ON true; @@ -1821,19 +1821,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 4 -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=3 loops=5) Index Cond: ("time" = g."time") - Heap Fetches: 15 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=3 loops=7) Index Cond: ("time" = g."time") - Heap Fetches: 21 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=3 loops=6) Index Cond: ("time" = g."time") - Heap Fetches: 18 + Heap Fetches: N (19 rows) :PREFIX SELECT * FROM generate_series('2000-01-01'::timestamptz,'2000-02-01'::timestamptz,'1d'::interval) AS g(time) INNER JOIN LATERAL (SELECT time FROM metrics_timestamptz m WHERE time>g.time + '1 day' ORDER BY time LIMIT 1) m ON true; @@ -1848,19 +1848,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 2 -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m_1 (actual rows=1 loops=4) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 4 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m_2 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m_3 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m_4 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 7 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m_5 (actual rows=1 loops=7) Index Cond: ("time" > (g."time" + '@ 1 day'::interval)) - Heap Fetches: 5 + Heap Fetches: N (22 rows) -- test runtime exclusion with subquery @@ -1876,30 +1876,30 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz (actual rows=1 loops=1) Order: metrics_timestamptz."time" DESC -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (never executed) Index Cond: ("time" = (InitPlan 2).col1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (never executed) Index Cond: ("time" = (InitPlan 2).col1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (never executed) Index Cond: ("time" = (InitPlan 2).col1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_4 (never executed) Index Cond: ("time" = (InitPlan 2).col1) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_5 (actual rows=3 loops=1) Index Cond: ("time" = (InitPlan 2).col1) - Heap Fetches: 3 + Heap Fetches: N (33 rows) -- test runtime exclusion with correlated subquery @@ -1911,10 +1911,10 @@ ORDER BY time DESC, device_id; Order: m1."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_1 (actual rows=4032 loops=1) Index Cond: ("time" < 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_2 (actual rows=3744 loops=1) Index Cond: ("time" < 'Mon Jan 10 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N SubPlan 1 -> Limit (actual rows=1 loops=7776) -> Custom Scan (ChunkAppend) on metrics_timestamptz m2 (actual rows=1 loops=7776) @@ -1922,19 +1922,19 @@ ORDER BY time DESC, device_id; Chunks excluded during runtime: 3 -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_1 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_2 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (never executed) Index Cond: ("time" < m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_4 (actual rows=1 loops=3741) Index Cond: ("time" < m1."time") - Heap Fetches: 3741 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_5 (actual rows=1 loops=4035) Index Cond: ("time" < m1."time") - Heap Fetches: 4032 + Heap Fetches: N (29 rows) -- test EXISTS @@ -1946,31 +1946,31 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=1003 loops=1) Order: m1."time" DESC -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m1_1 (actual rows=1003 loops=1) - Heap Fetches: 1003 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m1_2 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m1_3 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m1_4 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m1_5 (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Append (actual rows=1 loops=1003) -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk m2_1 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk m2_2 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk m2_3 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk m2_4 (actual rows=0 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk m2_5 (actual rows=1 loops=1003) Index Cond: ("time" > m1."time") - Heap Fetches: 1000 + Heap Fetches: N (30 rows) -- test constraint exclusion for subqueries with append @@ -1983,10 +1983,10 @@ ORDER BY time DESC, device_id; Chunks excluded during startup: 3 -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (actual rows=4032 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (actual rows=3744 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N (9 rows) -- test constraint exclusion for subqueries with mergeappend @@ -2001,10 +2001,10 @@ ORDER BY time DESC, device_id; Sort Key: _hyper_5_17_chunk.device_id, _hyper_5_17_chunk."time" -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_17_chunk (actual rows=4032 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 4032 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_18_chunk (actual rows=3744 loops=1) Index Cond: ("time" < ('2000-01-10'::cstring)::timestamp with time zone) - Heap Fetches: 3744 + Heap Fetches: N (11 rows) -- test LIMIT pushdown @@ -2016,15 +2016,15 @@ ORDER BY time DESC, device_id; -> Custom Scan (ChunkAppend) on metrics_timestamptz (actual rows=1 loops=1) Order: metrics_timestamptz."time" -> Index Only Scan Backward using _hyper_5_17_chunk_metrics_timestamptz_time_idx on _hyper_5_17_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_18_chunk_metrics_timestamptz_time_idx on _hyper_5_18_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_19_chunk_metrics_timestamptz_time_idx on _hyper_5_19_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_20_chunk_metrics_timestamptz_time_idx on _hyper_5_20_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan Backward using _hyper_5_21_chunk_metrics_timestamptz_time_idx on _hyper_5_21_chunk (never executed) - Heap Fetches: 0 + Heap Fetches: N (13 rows) -- aggregates should prevent pushdown @@ -2101,15 +2101,15 @@ SET enable_hashagg TO false; -> Merge Append (actual rows=17859 loops=1) Sort Key: _hyper_5_17_chunk.device_id -> Index Only Scan using _hyper_5_17_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_17_chunk (actual rows=2689 loops=1) - Heap Fetches: 2689 + Heap Fetches: N -> Index Only Scan using _hyper_5_18_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_18_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_19_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_19_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_20_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_20_chunk (actual rows=4033 loops=1) - Heap Fetches: 4033 + Heap Fetches: N -> Index Only Scan using _hyper_5_21_chunk_metrics_timestamptz_device_id_time_idx on _hyper_5_21_chunk (actual rows=3075 loops=1) - Heap Fetches: 3075 + Heap Fetches: N (14 rows) :PREFIX SELECT DISTINCT device_id FROM metrics_space ORDER BY device_id LIMIT 3; @@ -2120,23 +2120,23 @@ SET enable_hashagg TO false; -> Merge Append (actual rows=7491 loops=1) Sort Key: _hyper_6_22_chunk.device_id -> Index Only Scan using _hyper_6_22_chunk_metrics_space_device_id_time_idx on _hyper_6_22_chunk (actual rows=1345 loops=1) - Heap Fetches: 1345 + Heap Fetches: N -> Index Only Scan using _hyper_6_23_chunk_metrics_space_device_id_time_idx on _hyper_6_23_chunk (actual rows=1345 loops=1) - Heap Fetches: 1345 + Heap Fetches: N -> Index Only Scan using _hyper_6_24_chunk_metrics_space_device_id_time_idx on _hyper_6_24_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_6_25_chunk_metrics_space_device_id_time_idx on _hyper_6_25_chunk (actual rows=2017 loops=1) - Heap Fetches: 2017 + Heap Fetches: N -> Index Only Scan using _hyper_6_26_chunk_metrics_space_device_id_time_idx on _hyper_6_26_chunk (actual rows=2017 loops=1) - Heap Fetches: 2017 + Heap Fetches: N -> Index Only Scan using _hyper_6_27_chunk_metrics_space_device_id_time_idx on _hyper_6_27_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N -> Index Only Scan using _hyper_6_28_chunk_metrics_space_device_id_time_idx on _hyper_6_28_chunk (actual rows=386 loops=1) - Heap Fetches: 386 + Heap Fetches: N -> Index Only Scan using _hyper_6_29_chunk_metrics_space_device_id_time_idx on _hyper_6_29_chunk (actual rows=386 loops=1) - Heap Fetches: 386 + Heap Fetches: N -> Index Only Scan using _hyper_6_30_chunk_metrics_space_device_id_time_idx on _hyper_6_30_chunk (actual rows=1 loops=1) - Heap Fetches: 1 + Heap Fetches: N (22 rows) RESET enable_hashagg; @@ -2183,10 +2183,10 @@ DROP INDEX :INDEX_NAME; Rows Removed by Filter: 650 -> Index Only Scan using _hyper_8_36_chunk_join_limit_time_device_id_idx on _hyper_8_36_chunk m2_2 (never executed) Index Cond: ("time" > 'Fri Jan 07 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 0 + Heap Fetches: N -> Index Only Scan using _hyper_8_37_chunk_join_limit_time_device_id_idx on _hyper_8_37_chunk m2_3 (never executed) Index Cond: ("time" > 'Fri Jan 07 00:00:00 2000 PST'::timestamp with time zone) - Heap Fetches: 0 + Heap Fetches: N -> Materialize (actual rows=22 loops=1) -> Custom Scan (ChunkAppend) on metrics_timestamptz m1 (actual rows=19 loops=1) Order: m1."time" diff --git a/test/runner_cleanup_output.sh b/test/runner_cleanup_output.sh index 2a670f772e0..19c7f056fbf 100755 --- a/test/runner_cleanup_output.sh +++ b/test/runner_cleanup_output.sh @@ -8,7 +8,8 @@ RUNNER=${1:-""} sed -e '//,/<\/exclude_from_test>/d' \ -e 's! Memory: [0-9]\{1,\}kB!!' \ -e 's! Memory Usage: [0-9]\{1,\}kB!!' \ - -e 's! Average Peak Memory: [0-9]\{1,\}kB!!' | \ + -e 's! Average Peak Memory: [0-9]\{1,\}kB!!' \ + -e 's! Heap Fetches: [0-9]\{1,\}! Heap Fetches: N!'| \ grep -v 'DEBUG: rehashing catalog cache id' | \ grep -v 'DEBUG: compacted fsync request queue from' | \ grep -v 'DEBUG: creating and filling new WAL file' | \