pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: sofoklis24@gmail.com
Subject: BUG #16730: Create table like with inheritance and self referencing index
Date: Thu, 19 Nov 2020 15:41:24 +0000
Message-ID: <16730-b902f7e6e0276b30@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16730
Logged by:          Sofoklis Papasofokli
Email address:      sofoklis24@gmail.com
PostgreSQL version: 10.15
Operating system:   PostgreSQL 10.15 (Ubuntu 10.15-1.pgdg20.04+1) on
Description:        

The following simplified example used to work on previous versions, but not
on 10.15, we tested it again on version 10.11 and it works.

We read in the release notes of 10.15 that there is a change when using like
with inheritance, maybe it is related.


CREATE TABLE id_base
(
    id SERIAL PRIMARY KEY

);


CREATE TABLE inherited_table
(
    LIKE id_base INCLUDING DEFAULTS INCLUDING CONSTRAINTS INCLUDING
INDEXES,


    "self_ref_if" INT,

    CONSTRAINT self_ref_id_fk FOREIGN KEY ("self_ref_if")
        REFERENCES inherited_table (id) MATCH SIMPLE
        ON UPDATE RESTRICT ON DELETE RESTRICT
)
    INHERITS (id_base);



view thread (5+ messages)  latest in thread

Message-ID: <16730-b902f7e6e0276b30@postgresql.org>
Permalink:  ../16730-b902f7e6e0276b30@postgresql.org/
Also on:    postgresql.org/message-id/16730-b902f7e6e0276b30@postgresql.org

 · 

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: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, sofoklis24@gmail.com
  Subject: Re: BUG #16730: Create table like with inheritance and self referencing index
  In-Reply-To: <16730-b902f7e6e0276b30@postgresql.org>

* 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