Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKyqq-00071S-7P for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Nov 2018 04:57:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKyqo-0006ZZ-I9 for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Nov 2018 04:56:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKyqo-0006ZS-AN for pgsql-hackers@lists.postgresql.org; Fri, 09 Nov 2018 04:56:58 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKyql-0002eb-1U for pgsql-hackers@lists.postgresql.org; Fri, 09 Nov 2018 04:56:57 +0000 Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wA94ungh000995; Fri, 9 Nov 2018 13:56:49 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id ED2B4EA7160; Fri, 9 Nov 2018 13:56:48 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id E1D34EA711D; Fri, 9 Nov 2018 13:56:48 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id D1D3840038B; Fri, 9 Nov 2018 13:56:48 +0900 (JST) Subject: Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation References: <20181108163809.mb7dstn2j244fvuf@alvherre.pgsql> From: Amit Langote Message-ID: <0e1b2dde-263a-3399-fe83-affa6381e6b1@lab.ntt.co.jp> Date: Fri, 9 Nov 2018 13:56:36 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181108163809.mb7dstn2j244fvuf@alvherre.pgsql> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: Alvaro Herrera , Amit Langote Cc: Ashutosh Bapat , PostgreSQL Hackers X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018/11/09 1:38, Alvaro Herrera wrote: > On 2018-Nov-09, Amit Langote wrote: > >> On Fri, Nov 9, 2018 at 1:03 AM Alvaro Herrera wrote: >>> On 2018-Nov-07, Amit Langote wrote: > >>> Hmm, I'm thinking perhaps we shouldn't backpatch this part. It's >>> obviously a bug, but we might break somebody's working apps. Therefore >>> I think I'd rather leave it out of the current bugfix and commit >>> separately. >> >> Okay, that may be fine because nothing wrong is happening by silently >> ignoring the partition's specified collation. > > Actually, how about we reduce the message to a WARNING in released > branches, and ERROR in master? Broken applications would continue to > work, but users might become aware that there might be a problem. That might work too. Would you like me to create and post patches like that for 10 and 11 branches? Thanks, Amit