pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-bugs@lists.postgresql.org, tom@intevation.de, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Subject: Re: BUG #16272: Index expression can refer to wrong attributes if index is created via CREATE TABLE LIKE
Date: Sun, 13 Sep 2020 12:53:02 -0400
Message-ID: <848472.1600015982@sss.pgh.pa.us> (raw)
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>

Alexander Lakhin <exclusion@gmail.com> 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





view thread (7+ messages)

Message-ID: <848472.1600015982@sss.pgh.pa.us>
Permalink:  ../848472.1600015982@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/848472.1600015982@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, exclusion@gmail.com, michael@paquier.xyz, peter.eisentraut@2ndquadrant.com
  Subject: Re: BUG #16272: Index expression can refer to wrong attributes if index is created via CREATE TABLE LIKE
  In-Reply-To: <848472.1600015982@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox