Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFWb1-0006qU-0a for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Nov 2017 02:41:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFWb0-0005go-2s for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Nov 2017 02:41:34 +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.84_2) (envelope-from ) id 1eFWaz-0005ft-UA for pgsql-bugs@lists.postgresql.org; Fri, 17 Nov 2017 02:41:33 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eFWau-0003gJ-3r for pgsql-bugs@postgresql.org; Fri, 17 Nov 2017 02:41:33 +0000 Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id vAH2fOkV020836; Fri, 17 Nov 2017 11:41:24 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 3E50060294; Fri, 17 Nov 2017 11:41:24 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 319E460292; Fri, 17 Nov 2017 11:41:24 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id 2C24A400672; Fri, 17 Nov 2017 11:41:24 +0900 (JST) Subject: Re: BUG #14915: Create sub-partitioning using GENERATED ALWAYS AS IDENTITY will lead to system collapse. References: <20171117015200.1464.76267@wrigleys.postgresql.org> From: Amit Langote Message-ID: <20eccceb-b321-3f91-3b29-b300fcb85474@lab.ntt.co.jp> Date: Fri, 17 Nov 2017 11:41:13 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit To: Michael Paquier , 691525127@qq.com Cc: PostgreSQL mailing lists X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2017/11/17 11:05, Michael Paquier wrote: > On Fri, Nov 17, 2017 at 10:52 AM, <691525127@qq.com> wrote: >> However, the server connection failed in actual implementation. >> What is the reason for that? Will it be a bug? > > This issue is already discussed here, happening as well for typed > tables (original bug is about typed tables, I bumped into the > partition bit after more testing): > https://www.postgresql.org/message-id/20171023074458.1473.25799@wrigleys.postgresql.org > There is a patch which actually blocks any hole with an error message > instead of actual support as this feature support requires a bit of > refactoring when working on constraint clauses at parsing. And that's > a work about which we are not completely sure what's the best > direction to take, so for v10 things will likely go through the road > of a feature-not-supported error. Yeah, I think it would be nice to apply that patch so that 10.2 will give an error for this usage. Thanks, Amit