As described in the reference manual for COPY, we should to check file's path format not to allow relative path. Please find attached a patch. Thanks, Best regards, Etsuro Fujita
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных