pgsql: Assign constraint name when cloning FK definition for partitions

2018-10-05 Thread Michael Paquier
Assign constraint name when cloning FK definition for partitions This is for example used when attaching a partition to a partitioned table which includes foreign keys, and in this case the constraint name has been missing in the data cloned. This could lead to hard crashes, as when validating th

pgsql: Assign constraint name when cloning FK definition for partitions

2018-10-05 Thread Michael Paquier
Assign constraint name when cloning FK definition for partitions This is for example used when attaching a partition to a partitioned table which includes foreign keys, and in this case the constraint name has been missing in the data cloned. This could lead to hard crashes, as when validating th