From d0cbd464cc93756d5d979e6e3e2322d0f9932d84 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 15 Jan 2025 02:51:26 -0500 Subject: [PATCH] change name to not _dev --- sql/price_pool.sql | 6 +++--- sql/quote_review.pg.sql | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/price_pool.sql b/sql/price_pool.sql index 7dea9f4..36e4127 100644 --- a/sql/price_pool.sql +++ b/sql/price_pool.sql @@ -2,9 +2,9 @@ --LANGUAGE plpgsql AS --$func$ --BEGIN; -DROP MATERIALIZED VIEW IF EXISTS rlarp.price_pool_dev CASCADE; +DROP MATERIALIZED VIEW IF EXISTS rlarp.price_pool CASCADE; --CREATE TABLE IF NOT EXISTS rlarp.price_pool_dev AS ( -CREATE MATERIALIZED VIEW rlarp.price_pool_dev AS ( +CREATE MATERIALIZED VIEW rlarp.price_pool AS ( WITH agg AS ( SELECT @@ -241,5 +241,5 @@ CREATE MATERIALIZED VIEW rlarp.price_pool_dev AS ( --LIMIT 1000 ) WITH DATA; -create index ppd_gset on rlarp.price_pool_dev using gin (gset); +create index ppd_gset on rlarp.price_pool using gin (gset); --END; diff --git a/sql/quote_review.pg.sql b/sql/quote_review.pg.sql index 976dcad..be7d0b9 100644 --- a/sql/quote_review.pg.sql +++ b/sql/quote_review.pg.sql @@ -115,7 +115,7 @@ lq AS MATERIALIZED ( ,seas.* FROM lqg g - LEFT OUTER JOIN rlarp.price_pool_dev p ON + LEFT OUTER JOIN rlarp.price_pool p ON p.gset @> jsonb_build_object('mold',g.part_group) AND p.gset ? 'cust' AND p.gset ? 'v1ds'