Ora2Pg is a free tool used to migrate an Oracle database to a PostgreSQL compatible schema. It connects your Oracle database, scan it automatically and extracts its structure or data, it then generates SQL scripts that you can load into PostgreSQL.
The schema is included in the main psql import file. Let's say you have used -o data.sql you must import the all tables data files from this main psql script.
there is a table called history.foobar that is partitioned and the PARTITION_NAME is used for copy
suppose partition name is F_P0001 the table and schema name is not included in the copy statement - but only the partition name
COPY F_P0001 ....