-- Test that COPY TO and COPY FROM are blocked by the hook CREATE TEMP TABLE copy_test (id int); INSERT INTO copy_test VALUES (1), (2), (3); \set ON_ERROR_STOP off COPY copy_test TO STDOUT; ERROR: COPY TO command is not allowed COPY copy_test FROM STDIN; ERROR: COPY FROM command is not allowed COPY pg_class TO STDOUT; ERROR: COPY TO command is not allowed \set ON_ERROR_STOP on DROP TABLE copy_test;