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 1gKmnI-0006wk-Jv for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Nov 2018 16:04:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKmnG-0003mB-T3 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Nov 2018 16:04:30 +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 1gKmmf-00013k-Go for pgsql-hackers@lists.postgresql.org; Thu, 08 Nov 2018 16:03:53 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gKmmY-0001v6-8i for pgsql-hackers@lists.postgresql.org; Thu, 08 Nov 2018 16:03:52 +0000 Received: by mail-qk1-x742.google.com with SMTP id n12so27268036qkh.11 for ; Thu, 08 Nov 2018 08:03:46 -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=7N8p01hzestvalVOtIPIgdc0xmsRIuGnUTLhSbsj/AM=; b=BQzIZ2uo7l2X87Noiih1R+H8x5ZY6FwR86nJbzHcD6EvIrevcOVzhs2CxovYWkXCmv dG+QaSb1nTgK95Yvm4pnbYooM9QylfLddaqkrBx7A/0mCGvfHHKldIVyE+lVup2EfWR7 L+c6u5k0KxdzIks5bCcLX0vKo1utdouYctTt6TEjE4iCjG50Uv+wbf+RofV5E93hTZM7 7EZ9K9vEkVsivLDvIlX53SmotlR4GxlnVNOX9od/Ke2XwSPPx/WBt5hai1IvIOZRF8XO knG+90QtzBoCQ6wLTWrGZY4FefUzj5ZO8veSf+w7Vl78e79E7MyZKXl2gqhsMExo8fOy +t8Q== 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=7N8p01hzestvalVOtIPIgdc0xmsRIuGnUTLhSbsj/AM=; b=dIved3WJrXiwIIxmF2xMw9FCcXHeDS6BYj7IbBQzpZIRhS7mE9Wq0nFusmt3WE4To9 BCX/j9Xb7MBY58ZnNR4ubiaWuFe9UjT/vvGdzKsWklIVRBgoCbYi8v5fsDDsULMD3iKc OdwSZGbua014XcAsGOXHHbvmnH1vq6xqT0oS8PEN5JmJxTPBt3RPmOdwsoSJqe/+LXRZ vAY5oxxZ87WuhAP5a1G1wKBfZcuXJRtpetRc+AwmgNzlcZebSF3lBgbqTOyNpoHN5jtx ezQKNp5Fmdrl3LTCdMpxVQbIKqNu+KR43bddWL7VkuMKY3yZKxHl/rLr2s7CfxMlNKSk UPKA== X-Gm-Message-State: AGRZ1gL756YIRDX+hGgHETS+nTPVbm1QaPX6V5xJmBAXfw1aCunNMHF6 9eGmJKgPlqsD/4rQI29rxWaiSQ== X-Google-Smtp-Source: AJdET5cUHV3qU6BD2KYRQ65Bmm3AqEXCqBs4U/kmAGgTx2TTroFj5o4AH7TnIdVigcxB+2cYx2gGeg== X-Received: by 2002:aed:3881:: with SMTP id k1mr3969389qte.345.1541693024642; Thu, 08 Nov 2018 08:03:44 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id h41sm1352134qte.83.2018.11.08.08.03.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 08:03:43 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 1020E6D1; Thu, 8 Nov 2018 12:51:54 -0300 (-03) Date: Thu, 8 Nov 2018 12:51:54 -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: <20181108155154.jq623btpai6ufbw3@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-07, Amit Langote wrote: > I think the result in this case should be an error, just as it would in > the regular inheritance case. > > create table parent (a text); > create table child (a text collate "en_US") inherits (parent); > NOTICE: merging column "a" with inherited definition > ERROR: column "a" has a collation conflict > DETAIL: "default" versus "en_US" > > In fact, I see that ATTACH PARTITION rejects a partition if collations > don't match. 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services