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 1gLEY5-0004bq-QO for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Nov 2018 21:42:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gLEY2-0004un-48 for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Nov 2018 21:42:38 +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 1gLEY1-0004ug-Sz for pgsql-hackers@lists.postgresql.org; Fri, 09 Nov 2018 21:42:37 +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 1gLEXy-0001HH-SP for pgsql-hackers@lists.postgresql.org; Fri, 09 Nov 2018 21:42:37 +0000 Received: by mail-qk1-x741.google.com with SMTP id w204so4265410qka.2 for ; Fri, 09 Nov 2018 13:42:34 -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=MC4njdNQm1Jpk4x5y6BdUuA16cUiNjdxRhwkrHNw2XQ=; b=BbS7XpnewxKVxBrr4XDswZkjTrDFxch0NbhwTsWbR/kl3sVZ7YKEgTSCTr7NJuOHf8 6gxpSN5ni5lu22BpstpXqiysqtz2ZfvmVuIGhsfVf8uEaKjeoUqbnxB682hPXoexidqZ aTrTorr8TPuxPrglESVW0ReeUv8BtxUBXysWFwM7S060xS8DsMLN2jvc4sqGuOJBEUk/ z73zzzkBuR890ACDtMddTGZCRtO5l05CeZQ4nNJvcThAs+QPhu11bQVdgtBA4KqBKksP nYta/RBnjwFukpOawjKtIO6LGPB7xSQpzbDkzkThrtyhwVclD9BJwrDZ9piT7sCxmLxx czhQ== 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=MC4njdNQm1Jpk4x5y6BdUuA16cUiNjdxRhwkrHNw2XQ=; b=Y/ssTy2mxiutU6f6m2T1adc5nO9VhF+W3+bFoihRygOxyQLo0z3v25L411KZxOSvRR EbyVmpMD7eYgjutBGsLd9C3gXGcOoIYpeqPHtkaGpBwfJLqsHaI7jaeHS3FvgCKixssm 7suJuI0ydFAflOZEton7uKC0JoGw9eUUtZyHZYydLySSU2Faf9GN+6Aas0e0XLYvEZBS E3Y7/RgLdWcwUPFMeCwSMu7NB0YO9RbrzxsHg4FalBk0wtmyktZMW0swO86DP2KlkvL/ QYXLmp+uQMZdHvh23wH6cvG/T9mfDjfB2WvD2wYlp2ipNhH5BaC7hADUaV99CqQP7XzQ 1fyg== X-Gm-Message-State: AGRZ1gJzLM8E8dPsQEQmXzqUJHBYDAcIHu9yH9GpXc14DAjq5fi8Drfl BFOzidArP0xLovPTXzIHzW0OQg== X-Google-Smtp-Source: AJdET5fqhjLdMTIBI1Nj8wU5G7ONVs/x2LMI/APLZlejHGUb+wpFWuupWdOLErj1RheIHSdMyS1Mqw== X-Received: by 2002:a0c:d933:: with SMTP id p48mr10836899qvj.15.1541799751651; Fri, 09 Nov 2018 13:42:31 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id v1sm4908568qtj.68.2018.11.09.13.42.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Nov 2018 13:42:30 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id C1B5A692; Fri, 9 Nov 2018 18:42:28 -0300 (-03) Date: Fri, 9 Nov 2018 18:42:28 -0300 From: Alvaro Herrera To: =?utf-8?Q?J=C3=BCrgen?= Strobel Cc: Amit Langote , Amit Langote , PostgreSQL Hackers Subject: Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation Message-ID: <20181109214228.faadf3xh6haphi6x@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <553783fa-c48f-629a-daa9-602599deb516@strobel.info> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-09, Jürgen Strobel wrote: > OK got it. I agree about differing COLLATE clauses making no sense and > with the ERROR+WARNING solution, but I didn't report that. Yeah, I happened to notice it on code inspection. > The NULL violation is obvious too. Yeah, IMO that was an obvious bugfix. > I still hope for a bug fix for the DEFAULT clause with sensible > restrictions. Yeah, I understand that this is the one that you really care about. However, I think a fix is unlikely to be back-patchable, because it may break existing applications that are written to expect the current behavior. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services