pgsql: If a range-partitioned table has no default partition, reject nu

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: If a range-partitioned table has no default partition, reject nu
Date: 2017-11-28 19:16:17
Message-ID: E1eJlMf-0005y5-Gd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2d7950f2222c97bd9d9f4d4edc1b59e6660c3621

Modified Files
--------------
src/backend/catalog/partition.c | 5 ++---
src/test/regress/expected/insert.out | 4 ++++
src/test/regress/sql/insert.sql | 3 +++
3 files changed, 9 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-11-28 19:21:07 pgsql: Fix wrong function name in comment.
Previous Message Peter Eisentraut 2017-11-28 18:56:18 pgsql: Revert "PL/Python: Fix potential NULL pointer dereference"