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 1gK4xX-0003zC-Ep for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Nov 2018 17:16:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gK4xV-0003bU-Um for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Nov 2018 17:16:09 +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 1gK4xV-0003as-F9 for pgsql-hackers@lists.postgresql.org; Tue, 06 Nov 2018 17:16:09 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gK4xR-0006pQ-Vu for pgsql-hackers@lists.postgresql.org; Tue, 06 Nov 2018 17:16:08 +0000 Received: by mail-qt1-x844.google.com with SMTP id p35so3469038qtc.4 for ; Tue, 06 Nov 2018 09:16:05 -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=iHiNIcAWfGtx/3Ko7W7qYnHzER/UTy0LUgFs5HcyYk8=; b=FtPUxQx7SRVT9fPpqai9gdVvFr3ALIP9YFrob0B8RnLYAiGH5Him6tRCMo/JEdbdbW rsjdu+cK6vTsAX/Z6sH9ULuP7hW2PsYq3qQ11vRMOr6Wj+Nx4cqtDWkGrrW4PxEr5yLS 5o62ximZOv7roXao1iPgFjha/TV8/bfQupsCRt4v07hN8fayvacbHOuOVdtQmHONeJwi BZSN2NJgWPcSHOq4rIymCNt5LqZEgZ0svgvWdNDr385v/iRTaxe/TICRg+EFhbVWclKp EQZeyYWmiLRANXIbx1/VN01SM0LGFHmmwK18hrZ2edAyr+pBit5soU3wAkqzqTi3yN8x 8PBg== 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=iHiNIcAWfGtx/3Ko7W7qYnHzER/UTy0LUgFs5HcyYk8=; b=PuvgUG6RaLhxgZ/m6f31xLK/7+b5oUeT5oSzITM16NXmcPsl92WnXk2Pck63LPgUkS ZBOVu6c4HbSK69WDTk548hcKaO3SVYYMH6lUbJVbt3VR3iRPCr4fHtgkTibk/YnmGkS+ ay2fZzPBIFi3U6dWFG/m56uAYsjOn12QIlKKX+M+n/oEqnZAXZ32GxnU7BrtrlPQsuju p00Gp9WKpYIs9U2Uft/oq3oJS/1lW14tEqawul+ME08L7e6b+lsij17d6AljkOeAHpZN FScSIh+8S8tWQprW5nq8uqEqg5gZoBG/bHyjEuno0Njw9U6BtL9KjgvDWPZJGkPyJ0CR iT4g== X-Gm-Message-State: AGRZ1gLCmLXxvrhcGyyrs5/z6xgg9DrdBldQjpT+KRUk5v2nMEEZlLdj UIdN030N9R8a+VeGWpaKj0aDsQ== X-Google-Smtp-Source: AJdET5eAwzLpQBfQlAv8vOXSsamX1ou0ZNkPX6Q1cSBPOYpT3KgxN5V95oGn4NBD5kHQaJkPJdcieg== X-Received: by 2002:ac8:1873:: with SMTP id n48mr24089754qtk.10.1541524564769; Tue, 06 Nov 2018 09:16:04 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id l51sm1150461qtk.11.2018.11.06.09.16.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Nov 2018 09:16:03 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E65955FA; Tue, 6 Nov 2018 14:16:01 -0300 (-03) Date: Tue, 6 Nov 2018 14:16:01 -0300 From: Alvaro Herrera To: Amit Langote Cc: Ashutosh Bapat , PostgreSQL Hackers , Amit Langote Subject: Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation Message-ID: <20181106171523.6svuxanauqteyf7t@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="unqjnm5yycghvagh" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181106151013.45x75xvh6jpxsqpu@alvherre.pgsql> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --unqjnm5yycghvagh Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Here's the patch I intend to push to branches 10 and 11. The patch in master is almost identical -- the only difference is that ColumnDef->is_from_parent is removed. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --unqjnm5yycghvagh Content-Type: text/x-diff; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-Revise-attribute-handling-code-on-partition-creation.patch" Content-Transfer-Encoding: 8bit