diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2023-08-29 19:19:24 +0200 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2023-08-29 19:19:24 +0200 |
commit | 9b581c53418666205938311ef86047aa3c6b741f (patch) | |
tree | 326e4a2629f5cb02052e4f9c5b889895db262b75 /src/backend/utils/adt/network_gist.c | |
parent | 952db4979f9fea3fb4fd1eb07b310c85fdc2a8b9 (diff) | |
download | postgresql-9b581c53418666205938311ef86047aa3c6b741f.tar.gz postgresql-9b581c53418666205938311ef86047aa3c6b741f.zip |
Disallow changing NO INHERIT status of a not-null constraint
It makes no sense to add a NO INHERIT not-null constraint to a child
table that already has one in that column inherited from its parent.
Disallow that, and add tests for the relevant cases.
Per complaint from Kyotaro Horiguchi. I also used part of his proposed
patch.
Co-authored-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/20230828.161658.1184657435220765047.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/utils/adt/network_gist.c')
0 files changed, 0 insertions, 0 deletions