aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/postinit.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2023-09-01 19:49:20 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2023-09-01 19:49:20 +0200
commitd0ec2ddbe088f6da35444fad688a62eae4fbd840 (patch)
tree188c43938b4bef294032086a6029ffa4841d52d6 /src/backend/utils/init/postinit.c
parente09d763e25dccc40695bc824ddda9abea791d66f (diff)
downloadpostgresql-d0ec2ddbe088f6da35444fad688a62eae4fbd840.tar.gz
postgresql-d0ec2ddbe088f6da35444fad688a62eae4fbd840.zip
Fix not-null constraint test
When a partitioned table has a primary key, trying to find the corresponding not-null constraint for that column would come up empty, causing code that's trying to check said not-null constraint to crash. Fix by only running the check when the not-null constraint exists. Reported-by: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/d57b4a69-7394-3146-5976-9a1ef27e7972@gmail.com
Diffstat (limited to 'src/backend/utils/init/postinit.c')
0 files changed, 0 insertions, 0 deletions