Skip to content

Commit f893f35

Browse files
committed
Add allow_segment_DML to utility test function
1 parent 174691b commit f893f35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/regress/sql/matview.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,15 @@ 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;
241242
CREATE OR REPLACE FUNCTION mvtest_drop_the_index()
242243
RETURNS bool AS $$
243244
BEGIN
244245
EXECUTE 'DROP INDEX IF EXISTS mvtest_drop_idx';
245246
RETURN true;
246247
END;
247248
$$ LANGUAGE plpgsql;
249+
RESET allow_segment_DML;
248250

249251
CREATE MATERIALIZED VIEW drop_idx_matview AS
250252
SELECT 1 as i WHERE mvtest_drop_the_index();

0 commit comments

Comments
 (0)