Trigger Inheritance Implementation

I used the same approach as inherit fks so I added a column to
part_config (with default false though), implemented the
apply_triggers.sql and modified accordingly the create_parent and
create_time_partition to integrate the inherit_tg option.