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 1gKq9e-0002R3-Jg for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Nov 2018 19:39:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKq9c-0000mZ-H1 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Nov 2018 19:39:48 +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 1gKq9c-0000mS-98 for pgsql-hackers@lists.postgresql.org; Thu, 08 Nov 2018 19:39:48 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gKq9Z-00078y-PK for pgsql-hackers@lists.postgresql.org; Thu, 08 Nov 2018 19:39:47 +0000 Received: by mail-qk1-x741.google.com with SMTP id o125so28636689qkf.3 for ; Thu, 08 Nov 2018 11:39:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=fNniVq0xeRVQmbtuq6rTnG3PKv8gziJItU1Zk36C/Cw=; b=ADpOoWrSgh8RLEnxvmhVSRyJN+99cb3gAMsc4etGPdLNmC0OoXTORkavJ7eISpRzGr lJhorBad9LVjFpaWYvqu8zWO+jaSZYt9cb1ywuAkWQpi5ATjWkjTMX+/VYXEqY6hf0KU UBLCXHrLC5YVNIMLWRfQMnNW5Ihc0kseWkOK8fR/2aYExFHoa0diyiifXeT9ZcQTqVtB JXOLsDz4Q/H8htZV3enJqkJHjXxHaQbC1E6HIwihLXiJ4QiWy2G0Z8CXfglfjPDVHs6N fX59YtQ9y4AXtp8ZZ1nGS7NKi8uRbe5ZDpFKsawXXkNpgfYfdjeG/n69cambmk8/rmbc aWqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=fNniVq0xeRVQmbtuq6rTnG3PKv8gziJItU1Zk36C/Cw=; b=JLh5rdolu0JhIqvtCMoYUZ/QH5f1TM+AmwZVLv49BT1BIOM3/ZS+JvKHpuhjn/ZiHf ijfM3mQgo6E2oVnPRw57OI6dMeuH06CmUuHmb6ycg77NzTpz3xhyBB2FtttV5/7fwxy0 KwBmy62YkZzEVx4kdDehFY9Q4+lu77DPUmUyFcQjb5AhOtrKzPyB1FdPduk9IPFUtzD4 nAryHTR2gn1wehU9wL1FbILIW8rI9IEEboeseYaGeHTpw+4DLupmH/+n1KO8Qkain3dw O/LH3sLq239K4BgyqaMpBXkh8wE62xtVL/qDVXUSHSBM1NpRCf90fcX0kZyzCASTdKY2 G1KQ== X-Gm-Message-State: AGRZ1gIJ1QqLmMXSw8wo+0YTLJnbu9inh/rJMAAUpLiSoDxWtVaMvElC +gqhZBqoMILy9DiJPlYCluv+rw== X-Google-Smtp-Source: AJdET5epgQfQZb1hdL+iqF6rwNa817SRhap0lXxpEjbbUHhM6K6SVLABtaJXY9M0A0wRSQy8uI+OBQ== X-Received: by 2002:a37:a24b:: with SMTP id l72mr5786359qke.302.1541705983758; Thu, 08 Nov 2018 11:39:43 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id o2sm3492868qko.97.2018.11.08.11.39.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 11:39:43 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 9AE56614; Thu, 8 Nov 2018 16:39:40 -0300 (-03) Date: Thu, 8 Nov 2018 16:39:40 -0300 From: Alvaro Herrera To: Amit Langote Cc: Amit Langote , Ashutosh Bapat , PostgreSQL Hackers , =?utf-8?Q?J=C3=BCrgen?= Strobel Subject: Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation Message-ID: <20181108193940.2uam7tz6femqrd64@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181108163809.mb7dstn2j244fvuf@alvherre.pgsql> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Pushed. I included the test case for collations to the three branches, but no code changes. We can patch master for the handling of collations per your patch, and if somebody has it, a change to how defaults are applied when routing tuples. Thanks to Jürgen for reporting the bug. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services