diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-10-04 11:37:20 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-10-04 11:40:36 -0300 |
commit | fb9e93a2c5cf99e59a7e9362afd462f29e71bc1e (patch) | |
tree | e7bb7e7911f122e49d5aabad1349499e635fa0e5 /src/backend/executor/nodeCustom.c | |
parent | 09921f397b84bdae8406f3dc6f473ead730a6dd3 (diff) | |
download | postgresql-fb9e93a2c5cf99e59a7e9362afd462f29e71bc1e.tar.gz postgresql-fb9e93a2c5cf99e59a7e9362afd462f29e71bc1e.zip |
Fix duplicate primary keys in partitions
When using the CREATE TABLE .. PARTITION OF syntax, it's possible to
cause a partition to get two primary keys if the parent already has one.
Tighten the check to disallow that.
Reported-by: Rajkumar Raghuwanshi
Author: Amul Sul
Discussion: https://postgr.es/m/CAKcux6=OnSV3-qd8Gb6W=KPPwcCz6Fe_O_MQYjTa24__Xn8XxA@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeCustom.c')
0 files changed, 0 insertions, 0 deletions