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 1gLE3h-0003ES-Vd for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Nov 2018 21:11:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gLE3f-0004tD-17 for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Nov 2018 21:11:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLE3e-0004t6-8W for pgsql-hackers@lists.postgresql.org; Fri, 09 Nov 2018 21:11:14 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gLE3a-0000we-Mf for pgsql-hackers@lists.postgresql.org; Fri, 09 Nov 2018 21:11:12 +0000 Received: by mail-qk1-x741.google.com with SMTP id n12so4123937qkh.11 for ; Fri, 09 Nov 2018 13:11:10 -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=bia+8uSlaLqJ1osDTJxE3+r+aui1Fyg5mG3I5UPDmxg=; b=Os67lJOx2VHhsQU50zpedfLoUoIbuNVQN1AoYdUWK1xejZDrJkU5870C4aWVNJXyaw /VG+AZTEkWLjv+sm0NwIAfkW2iC9vYL43J3U+f684TM7OyiX3xj6ajUkX7SdUWRSPWHj MDPtd/sbiSh6FszV6ug/DdS6tRRuLXP9q2XnVczBXRXVIXlx8B9Okpp6O5DoDZp78+XD pBCh+O5iHkkZtRxPaGmBliRQ846Usmy0iJr5/A7SyfuFbgwi8Xr8coXuXcu2O8QSHEIi I2ex4n4V0wOinstC8wICaqcm0ArBLpzkZdfODMeg8z00qiGk+017n3ysHMefP7yuN2gb llbQ== 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=bia+8uSlaLqJ1osDTJxE3+r+aui1Fyg5mG3I5UPDmxg=; b=RZ39DRT/HtywW0pN5zT8rEtg3RZ+WdhFhad709WQYHo3QWlmA4NSUHQx0M9DoJyWdk 6VkxS4J5OK34PtcaZJG/zXzVlvsbr84pFu112M0VVzgJZNiuSPWIb1QX0bmpozEi3u4v QxH6zo/rckwRKLrFWEsahbs9mbrAqwGybcaDYKIKtia8is5Hn+GYrMitRUuz49c5RJMn 4swTiWSA2zo6AJXcKrEdkvogEZxAGBgxAEPcLhIa0A5YEqShDXkbkbL7CHqUr0ZFhS0c LxpWThlRsoYLTLl83zaZ4fBPzvjy/5G3khMbmp5hBoHPsP+m7pYpBKor40LFb2Lbhe2y 5Fyw== X-Gm-Message-State: AGRZ1gLDn9ByAd/Dzj88JZ7SSC7pfBgPPLu3aC2c3NDvhvJVm7AuREq5 klB7kue7eRW/JvLr3xKoTQJu3A== X-Google-Smtp-Source: AJdET5dgSjMzZ8wiuBmio78yOwOGugQw3p09S7cO13ELb2itqBn5o59Cd/bdhydDUT7dnz4Hv0uWyA== X-Received: by 2002:a37:31d1:: with SMTP id x200mr10231924qkx.325.1541797869409; Fri, 09 Nov 2018 13:11:09 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id r16sm6653418qkh.71.2018.11.09.13.11.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Nov 2018 13:11:08 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id A840C692; Fri, 9 Nov 2018 18:11:06 -0300 (-03) Date: Fri, 9 Nov 2018 18:11:06 -0300 From: Alvaro Herrera To: =?utf-8?Q?J=C3=BCrgen?= Strobel Cc: Amit Langote , Amit Langote , Ashutosh Bapat , PostgreSQL Hackers Subject: Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation Message-ID: <20181109211106.ue3nkyyv62lyspab@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <00ca74fd-4f88-877a-823b-2891f3f212ce@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: > 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) :-) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services