Could it be an idea to exploit the fact that DELIMITER E'\n' is currently an error?
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных