Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation
Amit Langote <langote_amit_f8@lab.ntt.co.jp>
From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Michael Paquier <michael@paquier.xyz>, Jürgen Strobel <juergen+postgresql@strobel.info>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>, pgsql-bugs@lists.postgresql.org,
PG Bug reporting form <noreply@postgresql.org>
Date: 2018-06-14T02:07:58Z
Lists: pgsql-bugs, pgsql-hackers
On 2018/06/14 10:57, Michael Paquier wrote: > On Wed, Jun 13, 2018 at 03:39:04PM +0200, Jürgen Strobel wrote: >> I agree, and I imagine especially being able to use per-partition >> sequences would be a common use case. That was my motivation when I >> discovered it, and it was very counter intuitive to me. >> >> Thanks for the NULL violation patch btw. > > Please note that I have added this thread to the Open item page, under > the older bug queue, and that a CF entry has been added so as we don't > lost track of it: > > https://commitfest.postgresql.org/18/1671/ Thank you, Michael. Just to be sure, you meant to add the open item for the NOT NULL violation bug fix patch mainly or all of what appears to be wrong here? About partition-specific defaults being ignored when inserting through the parent, do you think we should consider it a bug? I could imagine fixing the documentation to say that partition-specific defaults are only honored if directly inserted into and ignored otherwise. Thanks, Amit
Commits
-
Revise attribute handling code on partition creation
- e0c05bf4a7e6 11.2 landed
- 705d433fd5e2 12.0 landed
- 21c9e4973cec 10.7 landed