convert to materialized view

This commit is contained in:
Paul Trowbridge 2025-08-11 09:09:40 -04:00
parent e04021caa1
commit 2bf970eb06

View File

@ -1,4 +1,6 @@
CREATE TABLE pricequote.lastpricedetail AS DROP TABLE pricequote.lastpricedetail
CREATE MATERIALIZED VIEW pricequote.lastpricedetail AS
WITH base AS ( WITH base AS (
SELECT SELECT
customer, customer,
@ -122,3 +124,5 @@ FULL OUTER JOIN seg_json s
WITH DATA; WITH DATA;
--SELECT * FROM pricequote.lastpricedetail; --SELECT * FROM pricequote.lastpricedetail;
CREATE INDEX lastpricedetail_idx ON pricequote.lastpricedetail(customer, partgroup);