pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: If a range-partitioned table has no default partition, reject nu
Date: Tue, 28 Nov 2017 19:16:17 +0000
Message-ID: <E1eJlMf-0005y5-Gd@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1eJlMf-0005y5-Gd@gemulon.postgresql.org>
Permalink:  ../E1eJlMf-0005y5-Gd@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eJlMf-0005y5-Gd@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: If a range-partitioned table has no default partition, reject nu
  In-Reply-To: <E1eJlMf-0005y5-Gd@gemulon.postgresql.org>
  References: <E1eJlMf-0005y5-Gd@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox