File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -621,6 +621,7 @@ DROP OWNED BY regress_user_mvtest CASCADE;
621621DROP ROLE regress_user_mvtest;
622622-- Concurrent refresh requires a unique index on the materialized
623623-- view. Test what happens if it's dropped during the refresh.
624+ SET allow_segment_DML = ON;
624625CREATE OR REPLACE FUNCTION mvtest_drop_the_index()
625626 RETURNS bool AS $$
626627BEGIN
@@ -635,6 +636,7 @@ CREATE UNIQUE INDEX mvtest_drop_idx ON drop_idx_matview (i);
635636REFRESH MATERIALIZED VIEW CONCURRENTLY drop_idx_matview;
636637ERROR: could not find suitable unique index on materialized view
637638DROP MATERIALIZED VIEW drop_idx_matview; -- clean up
639+ RESET allow_segment_DML;
638640-- make sure that create WITH NO DATA works via SPI
639641BEGIN;
640642CREATE FUNCTION mvtest_func()
Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ DROP ROLE regress_user_mvtest;
238238
239239-- Concurrent refresh requires a unique index on the materialized
240240-- view. Test what happens if it's dropped during the refresh.
241+ SET allow_segment_DML = ON ;
241242CREATE OR REPLACE FUNCTION mvtest_drop_the_index ()
242243 RETURNS bool AS $$
243244BEGIN
@@ -252,6 +253,7 @@ CREATE MATERIALIZED VIEW drop_idx_matview AS
252253CREATE UNIQUE INDEX mvtest_drop_idx ON drop_idx_matview (i);
253254REFRESH MATERIALIZED VIEW CONCURRENTLY drop_idx_matview;
254255DROP MATERIALIZED VIEW drop_idx_matview; -- clean up
256+ RESET allow_segment_DML;
255257
256258-- make sure that create WITH NO DATA works via SPI
257259BEGIN ;
You can’t perform that action at this time.
0 commit comments