@@ -7,7 +7,7 @@ debug_waitpoint_enable
77
88
99step R2_refresh:
10- CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-02-15');
10+ CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-02-15', options => jsonb_build_object('buckets_per_batch', 0) );
1111 <waiting ...>
1212step L1_lock:
1313 BEGIN;
@@ -20,10 +20,10 @@ debug_waitpoint_release
2020
2121
2222step R3_refresh:
23- CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15');
23+ CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15', options => jsonb_build_object('buckets_per_batch', 0) );
2424 <waiting ...>
2525step R4_refresh:
26- CALL refresh_continuous_aggregate('cond_daily', '2026-03-15', '2026-03-30');
26+ CALL refresh_continuous_aggregate('cond_daily', '2026-03-15', '2026-03-30', options => jsonb_build_object('buckets_per_batch', 0) );
2727 <waiting ...>
2828step check_locks:
2929 SELECT l.mode, l.granted
@@ -50,7 +50,7 @@ step check_jobs:
5050
5151user_view_name|start_time |end_time
5252--------------+----------------------------+----------------------------
53- cond_daily |Sun Feb 08 16:00:00 2026 PST|Sat Feb 14 16:00:00 2026 PST
53+ cond_daily |Mon Jan 05 16:00:00 2026 PST|Sat Feb 14 16:00:00 2026 PST
5454
5555step L1_unlock:
5656 COMMIT;
@@ -89,7 +89,7 @@ debug_waitpoint_enable
8989
9090
9191step R2_refresh:
92- CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-02-15');
92+ CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-02-15', options => jsonb_build_object('buckets_per_batch', 0) );
9393 <waiting ...>
9494step L1_lock:
9595 BEGIN;
@@ -102,10 +102,10 @@ debug_waitpoint_release
102102
103103
104104step R3_refresh:
105- CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15');
105+ CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15', options => jsonb_build_object('buckets_per_batch', 0) );
106106 <waiting ...>
107107step R4_overlapping_refresh:
108- CALL refresh_continuous_aggregate('cond_daily', '2026-03-01', '2026-03-15');
108+ CALL refresh_continuous_aggregate('cond_daily', '2026-03-01', '2026-03-15', options => jsonb_build_object('buckets_per_batch', 0) );
109109 <waiting ...>
110110step check_locks:
111111 SELECT l.mode, l.granted
@@ -132,7 +132,7 @@ step check_jobs:
132132
133133user_view_name|start_time |end_time
134134--------------+----------------------------+----------------------------
135- cond_daily |Sun Feb 08 16:00:00 2026 PST|Sat Feb 14 16:00:00 2026 PST
135+ cond_daily |Mon Jan 05 16:00:00 2026 PST|Sat Feb 14 16:00:00 2026 PST
136136
137137step L1_unlock:
138138 COMMIT;
@@ -172,7 +172,7 @@ debug_waitpoint_enable
172172
173173
174174step R3_refresh:
175- CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15');
175+ CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15', options => jsonb_build_object('buckets_per_batch', 0) );
176176 <waiting ...>
177177step check_jobs:
178178 SELECT ca.user_view_name,
@@ -185,7 +185,7 @@ step check_jobs:
185185
186186user_view_name|start_time |end_time
187187--------------+----------------------------+----------------------------
188- cond_daily |Sat Mar 07 16:00:00 2026 PST|Sat Mar 14 17:00:00 2026 PDT
188+ cond_daily |Sun Feb 15 16:00:00 2026 PST|Sat Mar 14 17:00:00 2026 PDT
189189
190190step A1_revoke_perm:
191191 REVOKE SELECT on conditions FROM cagg_user;
@@ -217,7 +217,7 @@ debug_waitpoint_enable
217217
218218
219219step R3_refresh:
220- CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15');
220+ CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15', options => jsonb_build_object('buckets_per_batch', 0) );
221221 <waiting ...>
222222step check_jobs:
223223 SELECT ca.user_view_name,
@@ -230,7 +230,7 @@ step check_jobs:
230230
231231user_view_name|start_time |end_time
232232--------------+----------------------------+----------------------------
233- cond_daily |Sat Mar 07 16:00:00 2026 PST|Sat Mar 14 17:00:00 2026 PDT
233+ cond_daily |Sun Feb 15 16:00:00 2026 PST|Sat Mar 14 17:00:00 2026 PDT
234234
235235step A1_revoke_mat_perm:
236236 DO $$
@@ -273,7 +273,7 @@ debug_waitpoint_enable
273273
274274
275275step R2_refresh:
276- CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-02-15');
276+ CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-02-15', options => jsonb_build_object('buckets_per_batch', 0) );
277277 <waiting ...>
278278step check_jobs_metadata_manual:
279279 SELECT ca.user_view_name,
@@ -352,7 +352,7 @@ debug_waitpoint_enable
352352
353353
354354step R1_refresh:
355- CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-03-15');
355+ CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-03-15', options => jsonb_build_object('buckets_per_batch', 0) );
356356 <waiting ...>
357357step check_jobs:
358358 SELECT ca.user_view_name,
@@ -365,24 +365,11 @@ step check_jobs:
365365
366366user_view_name|start_time |end_time
367367--------------+----------------------------+----------------------------
368- cond_daily |Tue Mar 10 17 :00:00 2026 PDT |Sat Mar 14 17:00:00 2026 PDT
368+ cond_daily |Mon Jan 05 16 :00:00 2026 PST |Sat Mar 14 17:00:00 2026 PDT
369369
370370step K1_terminate:
371- DO $$
372- DECLARE
373- target_pid int;
374- BEGIN
375- SELECT pid INTO target_pid FROM cancelpid;
376- PERFORM pg_terminate_backend(target_pid);
377- LOOP
378- EXIT WHEN NOT EXISTS (
379- SELECT 1 FROM pg_stat_activity WHERE pid = target_pid
380- );
381- PERFORM pg_sleep(0.05);
382- END LOOP;
383- END;
384- $$;
385-
371+ CALL terminate_r1();
372+ <waiting ...>
386373step R1_refresh: <... completed>
387374FATAL: terminating connection due to administrator command
388375server closed the connection unexpectedly
@@ -394,16 +381,17 @@ debug_waitpoint_release
394381-----------------------
395382
396383
384+ step K1_terminate: <... completed>
397385step L1_lock:
398386 BEGIN;
399387 LOCK TABLE _timescaledb_catalog.continuous_aggs_jobs_refresh_ranges
400388 IN ACCESS EXCLUSIVE MODE;
401389
402390step R2_refresh:
403- CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-02-15');
391+ CALL refresh_continuous_aggregate('cond_daily', '2026-01-05', '2026-02-15', options => jsonb_build_object('buckets_per_batch', 0) );
404392 <waiting ...>
405393step R3_refresh:
406- CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15');
394+ CALL refresh_continuous_aggregate('cond_daily', '2026-02-15', '2026-03-15', options => jsonb_build_object('buckets_per_batch', 0) );
407395 <waiting ...>
408396step L1_unlock:
409397 COMMIT;
0 commit comments