I know that the COPY command requires that you work with plain tables. Is there any other way at all of export only part of a table
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных