From 8d8dc8409e94921022642095b9fce6a2c8f77d04 Mon Sep 17 00:00:00 2001 From: ClaytonNorthey92 Date: Wed, 5 Jun 2024 13:19:39 -0400 Subject: [PATCH] squashme --- database/bfgd/scripts/0009.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/bfgd/scripts/0009.sql b/database/bfgd/scripts/0009.sql index a4907c78..aef497b6 100644 --- a/database/bfgd/scripts/0009.sql +++ b/database/bfgd/scripts/0009.sql @@ -8,7 +8,7 @@ SET version = 9; DROP MATERIALIZED VIEW btc_blocks_can; -- this materialized view represents the canonical btc_blocks as we know it -CREATE MATERIALIZED VIEW btc_blocks_can AS explain analyze WITH RECURSIVE bb AS ( +CREATE MATERIALIZED VIEW btc_blocks_can AS WITH RECURSIVE bb AS ( -- define the tip as the highest block in __highest, look below -- for definition of this result set SELECT hash, @@ -95,7 +95,7 @@ IF NOT EXISTS( SELECT * FROM heights_with_no_children ) - + -- then we refresh the materialized view of the canonical chain THEN REFRESH MATERIALIZED VIEW btc_blocks_can; END IF;