Hi,
When testing the patch, I found some issues in the 0003,0004 patch.
Attaching new version patchset which fix these issues.
0003
* don't check parallel safety of partition's default column expression.
* rename some function/variable names to be consistent with existing code.
* remove some unused function parameters.
* fix a max_hazard overwrite issue.
* add some code comments and adjust some code forms.
0004
* Remove some unrelated comments in the regression test.
* add the 'begin;', 'rollback;' in insert_parallel.sql.
Best regards,
houzj