aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/float.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-10-06 14:59:36 +0900
committerMichael Paquier <michael@paquier.xyz>2018-10-06 14:59:36 +0900
commit38921d1416c62bb743f6cc5439d0462efefdb286 (patch)
treeaf9e84cc26282c3540204531bc6b138f7992a958 /src/backend/utils/adt/float.c
parent6eb612fea9d080f2ae77ecb7091e73dc9f298c97 (diff)
downloadpostgresql-38921d1416c62bb743f6cc5439d0462efefdb286.tar.gz
postgresql-38921d1416c62bb743f6cc5439d0462efefdb286.zip
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 the foreign key constraint, the constraint name is always expected. Particularly, when using log_min_messages >= DEBUG1, a log message would be generated with this unassigned constraint name, leading to an assertion failure on HEAD. While on it, rename a variable in ATExecAttachPartition which was declared twice with the same name. Author: Michael Paquier Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/20181005042236.GG1629@paquier.xyz Backpatch-through: 11
Diffstat (limited to 'src/backend/utils/adt/float.c')
0 files changed, 0 insertions, 0 deletions