We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 174691b commit f893f35Copy full SHA for f893f35
src/test/regress/sql/matview.sql
@@ -238,13 +238,15 @@ DROP ROLE regress_user_mvtest;
238
239
-- Concurrent refresh requires a unique index on the materialized
240
-- view. Test what happens if it's dropped during the refresh.
241
+SET allow_segment_DML = ON;
242
CREATE OR REPLACE FUNCTION mvtest_drop_the_index()
243
RETURNS bool AS $$
244
BEGIN
245
EXECUTE 'DROP INDEX IF EXISTS mvtest_drop_idx';
246
RETURN true;
247
END;
248
$$ LANGUAGE plpgsql;
249
+RESET allow_segment_DML;
250
251
CREATE MATERIALIZED VIEW drop_idx_matview AS
252
SELECT 1 as i WHERE mvtest_drop_the_index();
0 commit comments