{a,b}
(2 rows)
+SET online_analyze.table_type = "temporary";
+SET online_analyze.min_interval = "10000";
+SET online_analyze.scale_factor = "0.1";
+SET online_analyze.threshold = "50";
+-- Nothing bad should happen in COPY (query) TO file statement
+COPY (
+ SELECT 0 AS result
+) TO STDOUT WITH DELIMITER ';' CSV;
+0
+-- Nothing bad should happen in COPY relation TO file statement (copy_tbl does
+-- not change anyway)
+COPY copy_tbl TO stdout;
+1 a
+2 b
+SELECT stavalues1 FROM pg_statistic WHERE starelid = 'copy_tbl'::regclass;
+ stavalues1
+------------
+ {1,2}
+ {a,b}
+(2 rows)
+
SET online_analyze.enable = off;
SELECT stavalues1 FROM pg_statistic WHERE starelid = 'insert_tbl'::regclass;
SELECT stavalues1 FROM pg_statistic WHERE starelid = 'copy_tbl'::regclass;
+SET online_analyze.table_type = "temporary";
+SET online_analyze.min_interval = "10000";
+SET online_analyze.scale_factor = "0.1";
+SET online_analyze.threshold = "50";
+
+-- Nothing bad should happen in COPY (query) TO file statement
+COPY (
+ SELECT 0 AS result
+) TO STDOUT WITH DELIMITER ';' CSV;
+
+-- Nothing bad should happen in COPY relation TO file statement (copy_tbl does
+-- not change anyway)
+COPY copy_tbl TO stdout;
+SELECT stavalues1 FROM pg_statistic WHERE starelid = 'copy_tbl'::regclass;
+
SET online_analyze.enable = off;