Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHVFa-0002QV-Ll for pgsql-bugs@arkaria.postgresql.org; Sun, 13 Sep 2020 16:53:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kHVFZ-0005dP-Jf for pgsql-bugs@arkaria.postgresql.org; Sun, 13 Sep 2020 16:53:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHVFZ-0005dD-DQ for pgsql-bugs@lists.postgresql.org; Sun, 13 Sep 2020 16:53:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHVFX-0002nT-92 for pgsql-bugs@lists.postgresql.org; Sun, 13 Sep 2020 16:53:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 08DGr2Q2848473; Sun, 13 Sep 2020 12:53:02 -0400 From: Tom Lane To: Alexander Lakhin cc: Michael Paquier , pgsql-bugs@lists.postgresql.org, tom@intevation.de, Peter Eisentraut Subject: Re: BUG #16272: Index expression can refer to wrong attributes if index is created via CREATE TABLE LIKE In-reply-to: <05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com> References: <16272-6e32da020e9a9381@postgresql.org> <6861.1582328011@sss.pgh.pa.us> <8840.1587948815@sss.pgh.pa.us> <1727369.1597951104@sss.pgh.pa.us> <20200822014121.GC2108@paquier.xyz> <05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com> Comments: In-reply-to Alexander Lakhin message dated "Sun, 13 Sep 2020 10:00:01 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <848471.1600015982.1@sss.pgh.pa.us> Date: Sun, 13 Sep 2020 12:53:02 -0400 Message-ID: <848472.1600015982@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alexander Lakhin writes: > When executing the following query: > CREATE TABLE test(i int CHECK (i > 0)); > CREATE TABLE pg_user(LIKE test INCLUDING CONSTRAINTS); > I get an assertion: Fixed, thanks for the report! regards, tom lane