pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jürgen Strobel <juergen+postgresql@strobel.info>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Amit Langote <amitlangote09@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation
Date: Fri, 9 Nov 2018 22:34:37 +0100
Message-ID: <553783fa-c48f-629a-daa9-602599deb516@strobel.info> (raw)
In-Reply-To: <20181109211106.ue3nkyyv62lyspab@alvherre.pgsql>
References: <20181109211106.ue3nkyyv62lyspab@alvherre.pgsql>

On 2018-11-09 22:11, Alvaro Herrera wrote:
> On 2018-Nov-09, Jürgen Strobel wrote:
> 
>> I am slightly confused now, I thought this landmine was already fixed in
>> master and what remains is only whether to backport it or not? Which I
>> guess depends on whether this is classified as a bug or not.
> 
> Hmm, I changed (and back-patched) what happens to the NOT NULL clauses,
> but as I understand the behavior of the DEFAULT clauses has not changed.
> 
>> Since the fix has the potential to break current applications and the
>> documentation is vague about wanted behavior I think it would be
>> sensible to add a warning only, even if we agree to call it a bug.
> 
> Hmm, the part I was first proposing to backpatch as an ERROR was a
> mismatch in the COLLATE clause; then I talked about using a WARNING.  I
> ended up backpatching neither -- only immortalized the current behavior
> in a test case.  I think it should be an ERROR, but in master only.
> 
> 
> The DEFAULT clauses are a different problem (landmine) :-)
> 

OK got it. I agree about differing COLLATE clauses making no sense and
with the ERROR+WARNING solution, but I didn't report that.

The NULL violation is obvious too.

I still hope for a bug fix for the DEFAULT clause with sensible
restrictions.

-Jürgen




view thread (43+ messages)  latest in thread

Message-ID: <553783fa-c48f-629a-daa9-602599deb516@strobel.info>
Permalink:  ../553783fa-c48f-629a-daa9-602599deb516@strobel.info/
Also on:    postgresql.org/message-id/553783fa-c48f-629a-daa9-602599deb516@strobel.info

 · 

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-bugs@postgresql.org
  Cc: juergen+postgresql@strobel.info, alvherre@2ndquadrant.com, Langote_Amit_f8@lab.ntt.co.jp, amitlangote09@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation
  In-Reply-To: <553783fa-c48f-629a-daa9-602599deb516@strobel.info>
  References: <20181109211106.ue3nkyyv62lyspab@alvherre.pgsql> <553783fa-c48f-629a-daa9-602599deb516@strobel.info>

* 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