@@ -463,7 +463,7 @@ Fri Jan 02 00:00:00 2026 UTC|32.1666666666667|32.1666666666667| 288|
463463Sat Jan 03 00:00:00 2026 UTC| 31.5| 31.5| 96| 96|t |t
464464
465465
466- starting permutation: L1_refresh_full chk_1d_consistency WP_before_enable chk_hyper_invals L2_refresh_jan1 insert_ht L1_refresh_full lock_L2_source L2b_refresh_jan1_2 WP_before_release unlock chk_cagg_1d chk_1d_consistency
466+ starting permutation: L1_refresh_full chk_1d_consistency WP_before_enable chk_hyper_invals lock_L2_source L2_refresh_jan1 insert_ht L1_refresh_full L2b_refresh_jan1_2 WP_before_release unlock chk_cagg_1d chk_1d_consistency
467467step L1_refresh_full:
468468 CALL refresh_continuous_aggregate('cagg_6h', '2026-01-01', '2026-01-04');
469469
@@ -511,6 +511,16 @@ source |lowest |greatest
511511-------+----------------------------+----------------------------
512512cagg_6h|Thu Jan 01 00:00:00 2026 UTC|Sat Jan 03 18:00:00 2026 UTC
513513
514+ step lock_L2_source:
515+ BEGIN;
516+ DO $$
517+ BEGIN
518+ PERFORM 1 FROM _timescaledb_catalog.continuous_agg
519+ WHERE user_view_name = 'cagg_1d'
520+ FOR UPDATE;
521+ END;
522+ $$;
523+
514524step L2_refresh_jan1:
515525 CALL refresh_continuous_aggregate('cagg_1d', '2026-01-01', '2026-01-02');
516526 <waiting ...>
@@ -523,20 +533,6 @@ step insert_ht:
523533step L1_refresh_full:
524534 CALL refresh_continuous_aggregate('cagg_6h', '2026-01-01', '2026-01-04');
525535 <waiting ...>
526- step lock_L2_source:
527- BEGIN;
528- DO $$
529- DECLARE
530- mat_ht text;
531- BEGIN
532- SELECT format('%I.%I', h.schema_name, h.table_name) INTO mat_ht
533- FROM _timescaledb_catalog.continuous_agg ca
534- JOIN _timescaledb_catalog.hypertable h ON h.id = ca.mat_hypertable_id
535- WHERE ca.user_view_name = 'cagg_1d';
536- EXECUTE format('LOCK TABLE %s IN ACCESS EXCLUSIVE MODE', mat_ht);
537- END;
538- $$;
539- <waiting ...>
540536step L2b_refresh_jan1_2:
541537 CALL refresh_continuous_aggregate('cagg_1d', '2026-01-01', '2026-01-03');
542538
@@ -549,7 +545,6 @@ debug_waitpoint_release
549545
550546
551547step L1_refresh_full: <... completed>
552- step lock_L2_source: <... completed>
553548step unlock:
554549 ROLLBACK;
555550
@@ -590,7 +585,7 @@ Fri Jan 02 00:00:00 2026 UTC| 31.5|32.1666666666667| 96|
590585Sat Jan 03 00:00:00 2026 UTC| 31.5| 40.5| 96| 288|f |f
591586
592587
593- starting permutation: L1_refresh_full chk_1d_consistency WP_before_enable chk_hyper_invals L2b_refresh_jan1_2 insert_ht L1_refresh_full lock_L2_source L2_refresh_jan1 WP_before_release unlock chk_cagg_1d chk_1d_consistency
588+ starting permutation: L1_refresh_full chk_1d_consistency WP_before_enable chk_hyper_invals lock_L2_source L2b_refresh_jan1_2 insert_ht L1_refresh_full L2_refresh_jan1 WP_before_release unlock chk_cagg_1d chk_1d_consistency
594589step L1_refresh_full:
595590 CALL refresh_continuous_aggregate('cagg_6h', '2026-01-01', '2026-01-04');
596591
@@ -638,6 +633,16 @@ source |lowest |greatest
638633-------+----------------------------+----------------------------
639634cagg_6h|Thu Jan 01 00:00:00 2026 UTC|Sat Jan 03 18:00:00 2026 UTC
640635
636+ step lock_L2_source:
637+ BEGIN;
638+ DO $$
639+ BEGIN
640+ PERFORM 1 FROM _timescaledb_catalog.continuous_agg
641+ WHERE user_view_name = 'cagg_1d'
642+ FOR UPDATE;
643+ END;
644+ $$;
645+
641646step L2b_refresh_jan1_2:
642647 CALL refresh_continuous_aggregate('cagg_1d', '2026-01-01', '2026-01-03');
643648 <waiting ...>
@@ -650,20 +655,6 @@ step insert_ht:
650655step L1_refresh_full:
651656 CALL refresh_continuous_aggregate('cagg_6h', '2026-01-01', '2026-01-04');
652657 <waiting ...>
653- step lock_L2_source:
654- BEGIN;
655- DO $$
656- DECLARE
657- mat_ht text;
658- BEGIN
659- SELECT format('%I.%I', h.schema_name, h.table_name) INTO mat_ht
660- FROM _timescaledb_catalog.continuous_agg ca
661- JOIN _timescaledb_catalog.hypertable h ON h.id = ca.mat_hypertable_id
662- WHERE ca.user_view_name = 'cagg_1d';
663- EXECUTE format('LOCK TABLE %s IN ACCESS EXCLUSIVE MODE', mat_ht);
664- END;
665- $$;
666- <waiting ...>
667658step L2_refresh_jan1:
668659 CALL refresh_continuous_aggregate('cagg_1d', '2026-01-01', '2026-01-02');
669660
@@ -676,7 +667,6 @@ debug_waitpoint_release
676667
677668
678669step L1_refresh_full: <... completed>
679- step lock_L2_source: <... completed>
680670step unlock:
681671 ROLLBACK;
682672
@@ -872,7 +862,7 @@ Fri Jan 02 00:00:00 2026 UTC| 31.5| 31.5| 96|
872862Sat Jan 03 00:00:00 2026 UTC| 40.5| 40.5| 288| 288|t |t
873863
874864
875- starting permutation: L1_refresh_full chk_1d_consistency WP_before_enable chk_hyper_invals L2_refresh_jan1 insert_ht L1_refresh_full lock_L2_source L2b_refresh_jan3 WP_before_release unlock chk_cagg_1d chk_1d_consistency
865+ starting permutation: L1_refresh_full chk_1d_consistency WP_before_enable chk_hyper_invals lock_L2_source L2_refresh_jan1 insert_ht L1_refresh_full L2b_refresh_jan3 WP_before_release unlock chk_cagg_1d chk_1d_consistency
876866step L1_refresh_full:
877867 CALL refresh_continuous_aggregate('cagg_6h', '2026-01-01', '2026-01-04');
878868
@@ -920,6 +910,16 @@ source |lowest |greatest
920910-------+----------------------------+----------------------------
921911cagg_6h|Thu Jan 01 00:00:00 2026 UTC|Sat Jan 03 18:00:00 2026 UTC
922912
913+ step lock_L2_source:
914+ BEGIN;
915+ DO $$
916+ BEGIN
917+ PERFORM 1 FROM _timescaledb_catalog.continuous_agg
918+ WHERE user_view_name = 'cagg_1d'
919+ FOR UPDATE;
920+ END;
921+ $$;
922+
923923step L2_refresh_jan1:
924924 CALL refresh_continuous_aggregate('cagg_1d', '2026-01-01', '2026-01-02');
925925 <waiting ...>
@@ -932,20 +932,6 @@ step insert_ht:
932932step L1_refresh_full:
933933 CALL refresh_continuous_aggregate('cagg_6h', '2026-01-01', '2026-01-04');
934934 <waiting ...>
935- step lock_L2_source:
936- BEGIN;
937- DO $$
938- DECLARE
939- mat_ht text;
940- BEGIN
941- SELECT format('%I.%I', h.schema_name, h.table_name) INTO mat_ht
942- FROM _timescaledb_catalog.continuous_agg ca
943- JOIN _timescaledb_catalog.hypertable h ON h.id = ca.mat_hypertable_id
944- WHERE ca.user_view_name = 'cagg_1d';
945- EXECUTE format('LOCK TABLE %s IN ACCESS EXCLUSIVE MODE', mat_ht);
946- END;
947- $$;
948- <waiting ...>
949935step L2b_refresh_jan3:
950936 CALL refresh_continuous_aggregate('cagg_1d', '2026-01-03', '2026-01-04');
951937 <waiting ...>
@@ -957,7 +943,6 @@ debug_waitpoint_release
957943
958944
959945step L1_refresh_full: <... completed>
960- step lock_L2_source: <... completed>
961946step unlock:
962947 ROLLBACK;
963948
0 commit comments