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