USING PYTHON3
- this script was created based on this
- writing a DDL for every single table is time consuming so i created this script, this script's purpose is to create a monthly postgres partitioned table based on the date
- this will create a partitioned table with name like child_table_y2020m01
- filename is filename
- months_back is how many months behind you want for the partitioned table
- months_front is how many months ahead you want for the partitioned table