]> granicus.if.org Git - postgresql/commit
If a range-partitioned table has no default partition, reject null keys.
authorRobert Haas <rhaas@postgresql.org>
Tue, 28 Nov 2017 19:11:16 +0000 (14:11 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 28 Nov 2017 19:11:16 +0000 (14:11 -0500)
commit2d7950f2222c97bd9d9f4d4edc1b59e6660c3621
tree744c28cb6c31db60f2fb82ed32095f58daf432f3
parent62546b4357f2aec46bb896fdbddfc0904a2d7920
If a range-partitioned table has no default partition, reject null keys.

Commit 4e5fe9ad19e14af360de7970caa8b150436c9dec introduced this
problem.  Also add a test so it doesn't get broken again.

Report by Rushabh Lathia.  Fix by Amit Langote.  Reviewed by Rushabh
Lathia and Amul Sul.  Tweaked by me.

Discussion: http://postgr.es/m/CAGPqQf0Y1iJyk4QJBdMf=pS9i6Q0JUMM_h5-qkR3OMJ-e04PyA@mail.gmail.com
src/backend/catalog/partition.c
src/test/regress/expected/insert.out
src/test/regress/sql/insert.sql