ReadFile.shell_command is called by ParallelReadFile.read_command with the master table as param target_table.
Postgres does not redirect insert/copy from master table to child tables automatically.
In _ReadFile the correct child name is writen to a local param.
l.140: target_table = self.targettable + '' + day.strftime("%Y%m%d")
The param is not passed to function parallel_task, it is only used to analyze the (empty) partition.
Possible solutions could be:
use Postgres Partitioning introduced with Version 10 instead of inheritance
ReadFile.shell_command is called by ParallelReadFile.read_command with the master table as param target_table. Postgres does not redirect insert/copy from master table to child tables automatically.
In _ReadFile the correct child name is writen to a local param. l.140: target_table = self.targettable + '' + day.strftime("%Y%m%d") The param is not passed to function parallel_task, it is only used to analyze the (empty) partition.
Possible solutions could be: